dhist/flake.nix

29 lines
858 B
Nix
Raw Normal View History

2022-08-01 19:36:19 -03:00
{
description = "dmenu wrapper to sort inputs based on previous outputs";
inputs = {
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = { self, fenix, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
rust_platform = pkgs.makeRustPlatform {
inherit (fenix.packages.${system}.minimal) cargo rustc;
};
dhist_pkg = rust_platform.buildRustPackage {
pname = "dhist";
version = "0.1";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
};
in {
packages.dhist = dhist_pkg;
packages.default = dhist_pkg;
});
}