|
|
@ -44,9 +44,11 @@ Some utility commands:
|
|
|
|
};
|
|
|
|
};
|
|
|
|
packages.${system} = {
|
|
|
|
packages.${system} = {
|
|
|
|
default = self.packages.${system}.septadrop;
|
|
|
|
default = self.packages.${system}.septadrop;
|
|
|
|
septadrop = pkgs.rustPlatform.buildRustPackage (rustSettings // {
|
|
|
|
septadrop = let
|
|
|
|
pname = "septadrop";
|
|
|
|
|
|
|
|
version = "1.1.0";
|
|
|
|
version = "1.1.0";
|
|
|
|
|
|
|
|
in pkgs.rustPlatform.buildRustPackage (rustSettings // {
|
|
|
|
|
|
|
|
pname = "septadrop";
|
|
|
|
|
|
|
|
inherit version;
|
|
|
|
buildAndTestSubdir = "septadrop";
|
|
|
|
buildAndTestSubdir = "septadrop";
|
|
|
|
buildInputs = with pkgs; [ csfml ];
|
|
|
|
buildInputs = with pkgs; [ csfml ];
|
|
|
|
cargoHash = "sha256-9GoBHchjmgyIpvLlmNPdCaC378jA4zZqKQYj2hajNlU=";
|
|
|
|
cargoHash = "sha256-9GoBHchjmgyIpvLlmNPdCaC378jA4zZqKQYj2hajNlU=";
|
|
|
@ -54,6 +56,7 @@ Some utility commands:
|
|
|
|
pushd septadrop
|
|
|
|
pushd septadrop
|
|
|
|
sed -i -E "s|\"res\"|\"''${out}\/share\"|" src/config.rs
|
|
|
|
sed -i -E "s|\"res\"|\"''${out}\/share\"|" src/config.rs
|
|
|
|
mkdir -p $out/share
|
|
|
|
mkdir -p $out/share
|
|
|
|
|
|
|
|
cp -r build/septadrop_${version}_amd64/usr/share/* $out/share
|
|
|
|
cp -r res/* $out/share
|
|
|
|
cp -r res/* $out/share
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
'';
|
|
|
|