forked from mirrors/nixpkgs
koules: use SRI hash format
This commit is contained in:
parent
e28fc76d2c
commit
d2ebaafd90
|
@ -2,29 +2,28 @@
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, fetchzip
|
, fetchzip
|
||||||
, makeDesktopItem
|
|
||||||
, copyDesktopItems
|
, copyDesktopItems
|
||||||
, imake
|
|
||||||
, gccmakedep
|
, gccmakedep
|
||||||
|
, imake
|
||||||
|
, installShellFiles
|
||||||
, libX11
|
, libX11
|
||||||
, libXext
|
, libXext
|
||||||
, installShellFiles
|
, makeDesktopItem
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
debian-extras = fetchzip {
|
debian-extras = fetchzip {
|
||||||
url = "mirror://debian/pool/main/k/koules/koules_1.4-27.debian.tar.xz";
|
url = "mirror://debian/pool/main/k/koules/koules_1.4-27.debian.tar.xz";
|
||||||
sha256 = "0bq1rr6vxqmx2k0dhyrqnwwfiw4h2ycbj576v66vwr0jaq5plil3";
|
hash = "sha256-g0Z6C1YSZL6N2eYUuZgXkPDoOLc4e9jAFL3ivk3OAS8=";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "koules";
|
pname = "koules";
|
||||||
version = "1.4";
|
version = "1.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.ucw.cz/~hubicka/koules/packages/${pname}${version}-src.tar.gz";
|
url = "https://www.ucw.cz/~hubicka/koules/packages/${pname}${version}-src.tar.gz";
|
||||||
sha256 = "06x2wkpns14kii9fxmxbmj5lma371qj00hgl7fc5kggfmzz96vy3";
|
hash = "sha256-w2+T/q/uvVmYO/RBACQOZ6hKi6yr1+5SjJMEbe/kohs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ imake gccmakedep installShellFiles copyDesktopItems ];
|
nativeBuildInputs = [ imake gccmakedep installShellFiles copyDesktopItems ];
|
||||||
|
@ -57,20 +56,22 @@ stdenv.mkDerivation rec {
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
desktopItems = [ (makeDesktopItem {
|
desktopItems = [
|
||||||
desktopName = "Koules";
|
(makeDesktopItem {
|
||||||
name = "koules";
|
desktopName = "Koules";
|
||||||
exec = "xkoules";
|
name = "koules";
|
||||||
icon = "koules";
|
exec = "xkoules";
|
||||||
comment = "Push your enemies away, but stay away from obstacles";
|
icon = "koules";
|
||||||
categories = [ "Game" "ArcadeGame" ];
|
comment = "Push your enemies away, but stay away from obstacles";
|
||||||
}) ];
|
categories = [ "Game" "ArcadeGame" ];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Fast arcade game based on the fundamental law of body attraction";
|
|
||||||
homepage = "https://www.ucw.cz/~hubicka/koules/English/";
|
homepage = "https://www.ucw.cz/~hubicka/koules/English/";
|
||||||
|
description = "Fast arcade game based on the fundamental law of body attraction";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = [ maintainers.iblech ];
|
maintainers = [ maintainers.iblech ];
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue