mirror of
https://github.com/lelgenio/dhist.git
synced 2024-09-18 19:03:12 -03:00
29 lines
858 B
Nix
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;
|
|
});
|
|
}
|