nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 62 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 nix-update-script, 6 meson, 7 ninja, 8 pkg-config, 9 vala, 10 pantheon, 11 python3, 12 libgee, 13 gtk3, 14 desktop-file-utils, 15 wrapGAppsHook3, 16}: 17 18stdenv.mkDerivation (finalAttrs: { 19 pname = "hashit"; 20 version = "1.1.0"; 21 22 src = fetchFromGitHub { 23 owner = "artemanufrij"; 24 repo = "hashit"; 25 rev = finalAttrs.version; 26 sha256 = "1s8fbzg1z2ypn55xg1pfm5xh15waq55fkp49j8rsqiq8flvg6ybf"; 27 }; 28 29 nativeBuildInputs = [ 30 desktop-file-utils 31 meson 32 ninja 33 vala 34 pkg-config 35 python3 36 wrapGAppsHook3 37 ]; 38 39 buildInputs = [ 40 gtk3 41 libgee 42 pantheon.granite 43 ]; 44 45 postPatch = '' 46 chmod +x meson/post_install.py 47 patchShebangs meson/post_install.py 48 ''; 49 50 passthru = { 51 updateScript = nix-update-script { }; 52 }; 53 54 meta = { 55 description = "Simple app for checking usual checksums - Designed for elementary OS"; 56 homepage = "https://github.com/artemanufrij/hashit"; 57 license = lib.licenses.gpl2Plus; 58 teams = [ lib.teams.pantheon ]; 59 platforms = lib.platforms.linux; 60 mainProgram = "com.github.artemanufrij.hashit"; 61 }; 62})