Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 62 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 rustPlatform, 6 cargo, 7 just, 8 rofi, 9 pkg-config, 10 glib, 11 cairo, 12 pango, 13}: 14 15stdenv.mkDerivation (finalAttrs: { 16 pname = "rofi-games"; 17 version = "1.12.2"; 18 19 src = fetchFromGitHub { 20 owner = "Rolv-Apneseth"; 21 repo = "rofi-games"; 22 tag = "v${finalAttrs.version}"; 23 hash = "sha256-6sopWMiXA6UmZP2wNbl7RlDDBRz4rNLPrNd6XnaFQko="; 24 }; 25 26 cargoDeps = rustPlatform.fetchCargoVendor { 27 inherit (finalAttrs) pname version src; 28 hash = "sha256-5ofRwE68SNFYcnBiGORsTjl6jSeDJ+6PJH+/SA1l07g="; 29 }; 30 31 patches = [ 32 # fix the install locations of files and set default just task 33 ./fix-justfile.patch 34 ]; 35 36 env.PKGDIR = placeholder "out"; 37 38 strictDeps = true; 39 40 nativeBuildInputs = [ 41 rustPlatform.cargoSetupHook 42 cargo 43 just 44 rofi 45 pkg-config 46 ]; 47 48 buildInputs = [ 49 glib 50 cairo 51 pango 52 ]; 53 54 meta = { 55 changelog = "https://github.com/Rolv-Apneseth/rofi-games/blob/${finalAttrs.src.rev}/CHANGELOG.md"; 56 description = "Rofi plugin which adds a mode that will list available games for launch along with their box art"; 57 homepage = "https://github.com/Rolv-Apneseth/rofi-games"; 58 license = lib.licenses.gpl2Only; 59 maintainers = with lib.maintainers; [ tomasajt ]; 60 platforms = lib.platforms.linux; 61 }; 62})