mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
Use binary package in nix
This commit is contained in:
parent
ace81eaa4b
commit
28c8cecba5
18
kitchen.nix
18
kitchen.nix
@ -1,8 +1,16 @@
|
||||
{nixpkgs, gitignoreSrc}:
|
||||
with nixpkgs;
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "kitchen";
|
||||
version = "0.1.0";
|
||||
src = gitignoreSrc.gitignoreSource ./.;
|
||||
cargoSha256 = "sha256-SCTyR2TN6gNRkDeJOPPJQ2vJg9ClkLx0RJuMLpUWYBY=";
|
||||
nixpkgs.stdenv.mkDerivation rec {
|
||||
name = "kitchen";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/zaphar/kitchen/releases/download/v0.1.0/kitchen-linux";
|
||||
sha256 = "1f1lxw893r6afgkhizvhm4pg20qfw3kwf9kbzmkbcw0d21qsd9z2";
|
||||
};
|
||||
|
||||
phases = ["installPhase" "patchPhase"];
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp $src $out/bin/kitchen
|
||||
chmod u+x $out/bin/kitchen
|
||||
'';
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user