diff options
author | Martin Fischer <martin@push-f.com> | 2025-04-04 15:07:55 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-04-05 12:10:36 +0200 |
commit | d8b675d3670a70df15ec46dfd9a1bb9f801aae41 (patch) | |
tree | 9a8d5188081c912ba463ad06f005983ad82d6836 /default.nix | |
parent | b6e94ce2128968d83b0714904b251de434b58ab2 (diff) |
build: introduce Nix package and NixOS service
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..01d0210 --- /dev/null +++ b/default.nix @@ -0,0 +1,13 @@ +{ pkgs ? import <nixpkgs> {} }: + +pkgs.buildGoModule rec { + pname = "rust-features"; + version = "git"; + src = ./.; + vendorHash = "sha256-WaDp7wKYHeV8hAAwPGmp1Dv8Hkwzl+Mzr8yzuUP2TgQ="; + nativeBuildInputs = [pkgs.makeWrapper]; + + postInstall = '' + wrapProgram $out/bin/rust-features --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.git pkgs.bash ]} + ''; +} |