Skip to content

Commit 94e0bae

Browse files
committed
Fix CI
1 parent 1d46ef9 commit 94e0bae

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

nix/geopard.nix

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,20 @@
2323
, clippy
2424
}:
2525

26-
naersk-lib.buildPackage rec {
26+
stdenv.mkDerivation rec {
2727
pname = "geopard";
2828
version = "1.0.1";
2929

30+
cargoDeps = rustPlatform.importCargoLock {
31+
lockFile = ../Cargo.lock;
32+
outputHashes = {
33+
"cairo-rs-0.16.0" = "sha256-lCEOtFsuGKnYctVL5UzeFytIKIEIQU/DLr3mj+I8OEE=";
34+
"gdk4-0.5.0" = "sha256-j8RfllrPwcG/zxSMew/x435wYrR++z4csJ1p3wdNti0=";
35+
"gio-0.16.0" = "sha256-NKj1Yll7OIVQ5bi2H8EgRZyREl3mJ5ghgJ6T6xmcqOg=";
36+
"libadwaita-0.2.0" = "sha256-yg/Z2cK23R3NgJAziVOxjnPPmtTbBM6SNZhM9UFn+Gw=";
37+
};
38+
};
39+
3040
src = ../.;
3141

3242
nativeBuildInputs = [
@@ -42,20 +52,23 @@ naersk-lib.buildPackage rec {
4252
desktop-file-utils
4353
appstream-glib
4454
blueprint-compiler
55+
rustPlatform.rust.cargo
56+
rustPlatform.cargoSetupHook
57+
rustPlatform.rust.rustc
4558
rustfmt
4659
clippy
4760
];
4861

4962
buildInputs = [
63+
meson
64+
ninja
5065
desktop-file-utils
5166
gdk-pixbuf
5267
glib
5368
gtk4
5469
libadwaita
5570
openssl
5671
];
57-
checkPhase = ''
58-
'';
5972
doCheck = true;
6073
meta = with lib; {
6174
homepage = "https://github.com/ranfdev/Geopard";

0 commit comments

Comments
 (0)