forked from mirrors/nixpkgs
freenukum: 0.3.5 -> 0.4.0
This commit is contained in:
parent
b8f814b1f9
commit
8173ccd23c
|
@ -6,6 +6,7 @@
|
||||||
, dejavu_fonts
|
, dejavu_fonts
|
||||||
, SDL2
|
, SDL2
|
||||||
, SDL2_ttf
|
, SDL2_ttf
|
||||||
|
, SDL2_image
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pname = "freenukum";
|
pname = "freenukum";
|
||||||
|
@ -24,16 +25,17 @@ let
|
||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
inherit pname;
|
inherit pname;
|
||||||
version = "0.3.5";
|
version = "0.4.0";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
|
domain = "salsa.debian.org";
|
||||||
owner = "silwol";
|
owner = "silwol";
|
||||||
repo = pname;
|
repo = "freenukum";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0yqfzh0c8fqk92q9kmidy15dc5li0ak1gbn3v7p3xw5fkrzf99gy";
|
sha256 = "sha256-Tk9n2gPwyPin6JZ4RSO8d/+xVpEz4rF8C2eGKwrAXU0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "1nss5zbdvxkr1mfb6vi6yjxcih99w836kvfr4r3n5dvzlkvga2vf";
|
cargoSha256 = "sha256-8RfiObWDqZJg+sjjDBk+sRoS5CiECIdNPH79T+O8e8M=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
installShellFiles
|
installShellFiles
|
||||||
|
@ -42,6 +44,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
SDL2
|
SDL2
|
||||||
SDL2_ttf
|
SDL2_ttf
|
||||||
|
SDL2_image
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -55,13 +58,15 @@ rustPlatform.buildRustPackage rec {
|
||||||
${dejavu_fonts}/share/fonts/truetype/DejaVuSans.ttf \
|
${dejavu_fonts}/share/fonts/truetype/DejaVuSans.ttf \
|
||||||
$out/share/fonts/truetype/dejavu/DejaVuSans.ttf
|
$out/share/fonts/truetype/dejavu/DejaVuSans.ttf
|
||||||
mkdir -p $out/share/doc/freenukum
|
mkdir -p $out/share/doc/freenukum
|
||||||
install -Dm644 README.md CHANGELOG.md COPYING $out/share/doc/freenukum/
|
install -Dm644 README.md CHANGELOG.md $out/share/doc/freenukum/
|
||||||
installManPage doc/freenukum.6
|
installManPage doc/freenukum.6
|
||||||
install -Dm644 "${desktopItem}/share/applications/"* -t $out/share/applications/
|
install -Dm644 "${desktopItem}/share/applications/"* -t $out/share/applications/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Clone of the original Duke Nukum 1 Jump'n Run game";
|
description = "Clone of the original Duke Nukum 1 Jump'n Run game";
|
||||||
|
homepage = "https://salsa.debian.org/silwol/freenukum";
|
||||||
|
changelog = "https://salsa.debian.org/silwol/freenukum/-/blob/v${version}/CHANGELOG.md";
|
||||||
license = licenses.agpl3Plus;
|
license = licenses.agpl3Plus;
|
||||||
maintainers = with maintainers; [ _0x4A6F ];
|
maintainers = with maintainers; [ _0x4A6F ];
|
||||||
broken = stdenv.isDarwin;
|
broken = stdenv.isDarwin;
|
||||||
|
|
Loading…
Reference in a new issue