64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
|
{ lib
|
||
|
, stdenv
|
||
|
, fetchFromGitHub
|
||
|
, appstream-glib
|
||
|
, cargo
|
||
|
, desktop-file-utils
|
||
|
, meson
|
||
|
, ninja
|
||
|
, pkg-config
|
||
|
, rustPlatform
|
||
|
, rustc
|
||
|
, wrapGAppsHook4
|
||
|
, glib
|
||
|
, gtk4
|
||
|
, libadwaita
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "resources";
|
||
|
version = "1.2.1";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "nokyan";
|
||
|
repo = pname;
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-OVz1vsmOtH/5sEuyl2BfDqG2/9D1HGtHA0FtPntKQT0=";
|
||
|
};
|
||
|
|
||
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||
|
inherit src;
|
||
|
name = "${pname}-v${version}";
|
||
|
hash = "sha256-JxcqHM7jccZ+YwU93AejXejZK1bj7IggO1QrE5cSPYU=";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
appstream-glib
|
||
|
desktop-file-utils
|
||
|
meson
|
||
|
ninja
|
||
|
pkg-config
|
||
|
wrapGAppsHook4
|
||
|
rustPlatform.cargoSetupHook
|
||
|
cargo
|
||
|
rustc
|
||
|
];
|
||
|
|
||
|
buildInputs = [
|
||
|
glib
|
||
|
gtk4
|
||
|
libadwaita
|
||
|
];
|
||
|
|
||
|
mesonFlags = [
|
||
|
"-Dprofile=default"
|
||
|
];
|
||
|
|
||
|
meta = {
|
||
|
description = "Resources";
|
||
|
homepage = "https://github.com/nokyan/resources";
|
||
|
license = lib.licenses.gpl3Only;
|
||
|
maintainers = with lib.maintainers; [ dotlambda foo-dogsquared ];
|
||
|
platforms = lib.platforms.all;
|
||
|
};
|
||
|
}
|