diff options
author | Vincent Ambo <tazjin@gmail.com> | 2017-10-16T20·34+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2017-10-16T20·34+0200 |
commit | aa5dcbc4777a8e6f42eaee9ac0301d687363e040 (patch) | |
tree | 87e5d09fba483a926f99cb3f6724fdbdd84e9a62 | |
parent | 0f099705f7d1942c54e013ca4490c6719d82f23d (diff) |
feat: Add Nix build for nixfd
Builds my [nixfd][] tool for searching a cached version of the Nix package list. [nixfd]: https://github.com/tazjin/nixfd
-rw-r--r-- | configuration.nix | 2 | ||||
-rw-r--r-- | pkgs/nixfd.nix | 28 |
2 files changed, 30 insertions, 0 deletions
diff --git a/configuration.nix b/configuration.nix index 8ace418cdca5..1af903fb255c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -6,6 +6,7 @@ let rust-overlay = import nixpkgs-mozilla/rust-overlay.nix; unstable = import <nixos-unstable> { config.allowUnfree = true; }; + nixfd = import pkgs/nixfd.nix; in { imports = [ # Include the results of the hardware scan. @@ -31,6 +32,7 @@ in { environment.systemPackages = with pkgs; [ curl gnumake unzip openjdk gcc htop tree direnv tmux fish ripgrep gnupg pass git manpages stdmanpages latest.rustChannels.stable.rust + nixfd ]; # Enable the X11 windowing system. diff --git a/pkgs/nixfd.nix b/pkgs/nixfd.nix new file mode 100644 index 000000000000..71e6ff82e9ef --- /dev/null +++ b/pkgs/nixfd.nix @@ -0,0 +1,28 @@ +with import <nixpkgs> {}; + +# Build and install my nixfd tool. +with rustPlatform; + +buildRustPackage rec { + name = "nixfd-${version}"; + version = "0.1.0"; + + # This hash is of course total bullshit due to the dummy libc dependency + # caused by: + # https://github.com/NixOS/nixpkgs/issues/22737 + depsSha256 = "0iihnyq50qbq0fkvcj5jxilcw7d3bwd1x3gwcq0mzrcah23say0j"; + + src = fetchFromGitHub { + owner = "tazjin"; + repo = "nixfd"; + rev = "dbadc9ef8486070f26677154fa032a47d732b7a9"; + sha256 = "162301lc4znlqbansmaw9sla1rwi2s5nfmhl3z752n6aj2gcvz89"; + }; + + meta = with stdenv.lib; { + description = "Tired of waiting for nix-env -qaP?"; + homepage = https://github.com/tazjin/nixfd; + license = licenses.mit; + platforms = platforms.all; + }; +} |