dhist/flake.nix
Leonardo Eugênio 11b2d9671a Add nixos config
2022-08-01 20:08:58 -03:00

29 lines
858 B
Nix

{
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;
});
}