flake.nix: package icon and desktop file
This commit is contained in:
parent
ab85163723
commit
7d249d2d67
1 changed files with 5 additions and 2 deletions
|
@ -44,9 +44,11 @@ Some utility commands:
|
|||
};
|
||||
packages.${system} = {
|
||||
default = self.packages.${system}.septadrop;
|
||||
septadrop = pkgs.rustPlatform.buildRustPackage (rustSettings // {
|
||||
pname = "septadrop";
|
||||
septadrop = let
|
||||
version = "1.1.0";
|
||||
in pkgs.rustPlatform.buildRustPackage (rustSettings // {
|
||||
pname = "septadrop";
|
||||
inherit version;
|
||||
buildAndTestSubdir = "septadrop";
|
||||
buildInputs = with pkgs; [ csfml ];
|
||||
cargoHash = "sha256-9GoBHchjmgyIpvLlmNPdCaC378jA4zZqKQYj2hajNlU=";
|
||||
|
@ -54,6 +56,7 @@ Some utility commands:
|
|||
pushd septadrop
|
||||
sed -i -E "s|\"res\"|\"''${out}\/share\"|" src/config.rs
|
||||
mkdir -p $out/share
|
||||
cp -r build/septadrop_${version}_amd64/usr/share/* $out/share
|
||||
cp -r res/* $out/share
|
||||
popd
|
||||
'';
|
||||
|
|
Loading…
Add table
Reference in a new issue