From 7d249d2d6794180f797e1b3c319ff4f92aa3ca59 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 5 Sep 2023 18:23:08 -0700 Subject: [PATCH] flake.nix: package icon and desktop file --- flake.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 9969149..4cf2654 100644 --- a/flake.nix +++ b/flake.nix @@ -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 '';