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}:
|
{nixpkgs, gitignoreSrc}:
|
||||||
with nixpkgs;
|
with nixpkgs;
|
||||||
rustPlatform.buildRustPackage {
|
nixpkgs.stdenv.mkDerivation rec {
|
||||||
pname = "kitchen";
|
name = "kitchen";
|
||||||
version = "0.1.0";
|
src = fetchurl {
|
||||||
src = gitignoreSrc.gitignoreSource ./.;
|
url = "https://github.com/zaphar/kitchen/releases/download/v0.1.0/kitchen-linux";
|
||||||
cargoSha256 = "sha256-SCTyR2TN6gNRkDeJOPPJQ2vJg9ClkLx0RJuMLpUWYBY=";
|
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