Compare commits

...

3 Commits

Author SHA1 Message Date
Sigmanificient
1235b95827 pkgs/kde: mkDerivation rec {} -> mkDerivation (finalAttrs: {}) 2025-05-12 19:03:31 +02:00
Sigmanificient
6f52e21fbc pkgs/data: mkDerivation rec {} -> mkDerivation (finalAttrs: {}) 2025-05-12 19:03:30 +02:00
Sigmanificient
0d8595a4e8 pkgs/games: mkDerivation rec {} -> mkDerivation (finalAttrs: {}) 2025-05-12 19:03:28 +02:00
79 changed files with 282 additions and 284 deletions

View File

@@ -10,14 +10,14 @@
scfbuild, scfbuild,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "emojione"; pname = "emojione";
version = "1.4"; version = "1.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "eosrei"; owner = "eosrei";
repo = "emojione-color-font"; repo = "emojione-color-font";
rev = "v${version}"; tag = "v${finalAttrs.version}";
sha256 = "1781kxfbhnvylypbkwxc3mx6hi0gcjisfjr9cf0jdz4d1zkf09b3"; sha256 = "1781kxfbhnvylypbkwxc3mx6hi0gcjisfjr9cf0jdz4d1zkf09b3";
}; };
@@ -63,4 +63,4 @@ stdenv.mkDerivation rec {
license = licenses.cc-by-40; license = licenses.cc-by-40;
maintainers = with maintainers; [ abbradar ]; maintainers = with maintainers; [ abbradar ];
}; };
} })

View File

@@ -21,7 +21,7 @@ let
nativeBuildInputs, nativeBuildInputs,
postPatch ? null, postPatch ? null,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation {
pname = "liberation-fonts"; pname = "liberation-fonts";
inherit version; inherit version;
@@ -38,7 +38,7 @@ let
for i in ${toString docsToInstall}; do for i in ${toString docsToInstall}; do
# not all docs exist in all versions # not all docs exist in all versions
install -m444 -Dt $out/share/doc/${pname}-${version} $i || true install -m444 -Dt $out/share/doc/liberation-fonts-${version} $i || true
done done
''; '';

View File

@@ -15,11 +15,11 @@ let
hash, hash,
desc, desc,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
inherit pname; inherit pname;
version = "7.2"; version = "7.2";
src = fetchurl { src = fetchurl {
url = "https://github.com/subframe7536/Maple-font/releases/download/v${version}/${pname}.zip"; url = "https://github.com/subframe7536/Maple-font/releases/download/v${finalAttrs.version}/${pname}.zip";
inherit hash; inherit hash;
}; };
@@ -42,7 +42,7 @@ let
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ oluceps ]; maintainers = with maintainers; [ oluceps ];
}; };
}; });
typeVariants = { typeVariants = {
truetype = { truetype = {

View File

@@ -43,7 +43,7 @@ let
let let
dotless_version = builtins.replaceStrings [ "." ] [ "" ] version; dotless_version = builtins.replaceStrings [ "." ] [ "" ] version;
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
name = "tex-gyre-${variant}-math-${version}"; name = "tex-gyre-${variant}-math-${version}";
inherit version; inherit version;
@@ -54,7 +54,7 @@ let
installPhase = '' installPhase = ''
install -m444 -Dt $out/share/fonts/opentype opentype/*.otf install -m444 -Dt $out/share/fonts/opentype opentype/*.otf
install -m444 -Dt $out/share/doc/${name} doc/*.txt install -m444 -Dt $out/share/doc/${finalAttrs.name} doc/*.txt
''; '';
outputHashAlgo = "sha256"; outputHashAlgo = "sha256";
@@ -75,6 +75,6 @@ let
maintainers = with maintainers; [ siddharthist ]; maintainers = with maintainers; [ siddharthist ];
platforms = platforms.all; platforms = platforms.all;
}; };
}; });
in in
lib.mapAttrs mkVariant variants lib.mapAttrs mkVariant variants

View File

@@ -10,13 +10,13 @@
hicolor-icon-theme, hicolor-icon-theme,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation {
pname = "papirus-maia-icon-theme"; pname = "papirus-maia-icon-theme";
version = "2019-07-26"; version = "2019-07-26";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Ste74"; owner = "Ste74";
repo = pname; repo = "papirus-maia-icon-theme";
rev = "90d47c817cc0edeed8b5a90335e669948ff4a116"; rev = "90d47c817cc0edeed8b5a90335e669948ff4a116";
sha256 = "0d6lvdg5nw5wfaq8lxszcws174vg12ywkrqzn6czimhmhp48jf5p"; sha256 = "0d6lvdg5nw5wfaq8lxszcws174vg12ywkrqzn6czimhmhp48jf5p";
}; };

View File

@@ -12,12 +12,12 @@
hicolor-icon-theme, hicolor-icon-theme,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "tango-icon-theme"; pname = "tango-icon-theme";
version = "0.8.90"; version = "0.8.90";
src = fetchurl { src = fetchurl {
url = "http://tango.freedesktop.org/releases/tango-icon-theme-${version}.tar.gz"; url = "http://tango.freedesktop.org/releases/tango-icon-theme-${finalAttrs.version}.tar.gz";
sha256 = "13n8cpml71w6zfm2jz5fa7r1z18qlzk4gv07r6n1in2p5l1xi63f"; sha256 = "13n8cpml71w6zfm2jz5fa7r1z18qlzk4gv07r6n1in2p5l1xi63f";
}; };
@@ -50,4 +50,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
license = licenses.publicDomain; license = licenses.publicDomain;
}; };
} })

View File

@@ -21,12 +21,12 @@ let
}: }:
let let
legacySuffix = lib.optionalString (suffix != "-nons") "-ns"; legacySuffix = lib.optionalString (suffix != "-nons") "-ns";
self = stdenv.mkDerivation rec { self = stdenv.mkDerivation (finalAttrs: {
inherit pname; inherit pname;
version = "1.79.2"; version = "1.79.2";
src = fetchurl { src = fetchurl {
url = "https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F${version}/docbook-xsl${suffix}-${version}.tar.bz2"; url = "https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F${finalAttrs.version}/docbook-xsl${suffix}-${finalAttrs.version}.tar.bz2";
inherit sha256; inherit sha256;
}; };
@@ -51,7 +51,8 @@ let
# Add legacy sourceforge.net URIs to the catalog # Add legacy sourceforge.net URIs to the catalog
(replaceVars ./catalog-legacy-uris.patch { (replaceVars ./catalog-legacy-uris.patch {
inherit legacySuffix suffix version; inherit legacySuffix suffix;
inherit (finalAttrs) version;
}) })
] ]
++ lib.optionals withManOptDedupPatch [ ++ lib.optionals withManOptDedupPatch [
@@ -90,7 +91,7 @@ let
maintainers = [ ]; maintainers = [ ];
platforms = lib.platforms.all; platforms = lib.platforms.all;
}; };
}; });
in in
self; self;

View File

@@ -12,7 +12,7 @@
useQt6 ? false, useQt6 ? false,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "adwaita-qt"; pname = "adwaita-qt";
version = "1.4.2"; version = "1.4.2";
@@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "FedoraQt"; owner = "FedoraQt";
repo = pname; repo = "adwaita-qt";
rev = version; rev = finalAttrs.version;
sha256 = "sha256-K/+SL52C+M2OC4NL+mhBnm/9BwH0KNNTGIDmPwuUwkM="; sha256 = "sha256-K/+SL52C+M2OC4NL+mhBnm/9BwH0KNNTGIDmPwuUwkM=";
}; };
@@ -71,4 +71,4 @@ stdenv.mkDerivation rec {
maintainers = [ ]; maintainers = [ ];
platforms = platforms.all; platforms = platforms.all;
}; };
} })

View File

@@ -8,12 +8,12 @@
let let
themeName = "Ant-Bloody"; themeName = "Ant-Bloody";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "ant-bloody-theme"; pname = "ant-bloody-theme";
version = "1.3.0"; version = "1.3.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/EliverLara/${themeName}/releases/download/v${version}/${themeName}.tar"; url = "https://github.com/EliverLara/${themeName}/releases/download/v${finalAttrs.version}/${themeName}.tar";
sha256 = "0rrz50kmzjmqj17hvrw67pbaclwxv85i5m08s7842iky6dnn5z8s"; sha256 = "0rrz50kmzjmqj17hvrw67pbaclwxv85i5m08s7842iky6dnn5z8s";
}; };
@@ -36,4 +36,4 @@ stdenv.mkDerivation rec {
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ alexarice ]; maintainers = with maintainers; [ alexarice ];
}; };
} })

View File

@@ -8,12 +8,12 @@
let let
themeName = "Ant-Nebula"; themeName = "Ant-Nebula";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "ant-nebula-theme"; pname = "ant-nebula-theme";
version = "1.3.0"; version = "1.3.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/EliverLara/${themeName}/releases/download/v${version}/${themeName}.tar"; url = "https://github.com/EliverLara/${themeName}/releases/download/v${finalAttrs.version}/${themeName}.tar";
sha256 = "1xpgw577nmgjk547mg2vvv0gdai60srgncykm5pb1w8dnlk69jbz"; sha256 = "1xpgw577nmgjk547mg2vvv0gdai60srgncykm5pb1w8dnlk69jbz";
}; };
@@ -36,4 +36,4 @@ stdenv.mkDerivation rec {
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ alexarice ]; maintainers = with maintainers; [ alexarice ];
}; };
} })

View File

@@ -8,12 +8,12 @@
let let
themeName = "Ant"; themeName = "Ant";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "ant-theme"; pname = "ant-theme";
version = "1.3.0"; version = "1.3.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/EliverLara/${themeName}/releases/download/v${version}/${themeName}.tar"; url = "https://github.com/EliverLara/${themeName}/releases/download/v${finalAttrs.version}/${themeName}.tar";
sha256 = "1r795v96ywzcb4dq08q2fdbmfia32g36cc512mhy41s8fb1a47dz"; sha256 = "1r795v96ywzcb4dq08q2fdbmfia32g36cc512mhy41s8fb1a47dz";
}; };
@@ -36,4 +36,4 @@ stdenv.mkDerivation rec {
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ alexarice ]; maintainers = with maintainers; [ alexarice ];
}; };
} })

View File

@@ -8,13 +8,13 @@
gitUpdater, gitUpdater,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation {
pname = "graphite-kde-theme"; pname = "graphite-kde-theme";
version = "unstable-2023-10-25"; version = "unstable-2023-10-25";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "vinceliuice"; owner = "vinceliuice";
repo = pname; repo = "graphite-kde-theme";
rev = "33cc85c49c424dfcba73e6ee84b0dc7fb9e52566"; rev = "33cc85c49c424dfcba73e6ee84b0dc7fb9e52566";
hash = "sha256-iQGT2x0wY2EIuYw/a1MB8rT9BxiqWrOyBo6EGIJwsFw="; hash = "sha256-iQGT2x0wY2EIuYw/a1MB8rT9BxiqWrOyBo6EGIJwsFw=";
}; };

View File

@@ -5,14 +5,14 @@
lib, lib,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "gtk-theme-framework"; pname = "gtk-theme-framework";
version = "0.2.3"; version = "0.2.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jaxwilko"; owner = "jaxwilko";
repo = pname; repo = "gtk-theme-framework";
rev = "v${version}"; rev = "v${finalAttrs.version}";
sha256 = "1z5s5rsgiypanf2z0avaisbflnvwrc8aiy5qskrsvbbaja63jy3s"; sha256 = "1z5s5rsgiypanf2z0avaisbflnvwrc8aiy5qskrsvbbaja63jy3s";
}; };
@@ -38,4 +38,4 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Only; license = licenses.gpl3Only;
maintainers = [ ]; maintainers = [ ];
}; };
} })

View File

@@ -12,14 +12,14 @@
lib, lib,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "kde-rounded-corners"; pname = "kde-rounded-corners";
version = "0.7.2"; version = "0.7.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "matinlotfali"; owner = "matinlotfali";
repo = "KDE-Rounded-Corners"; repo = "KDE-Rounded-Corners";
rev = "v${version}"; rev = "v${finalAttrs.version}";
hash = "sha256-idcQ4ANud31qOCmEnPvKjstK9fCp6+cwcmSO7/8aCaY="; hash = "sha256-idcQ4ANud31qOCmEnPvKjstK9fCp6+cwcmSO7/8aCaY=";
}; };
@@ -42,4 +42,4 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Only; license = licenses.gpl3Only;
maintainers = with maintainers; [ devusb ]; maintainers = with maintainers; [ devusb ];
}; };
} })

View File

@@ -15,14 +15,14 @@ let
qt5Version = "1.3.3"; qt5Version = "1.3.3";
qt5Sha256 = "sha256-zTUTsSzy4p0Y7RPOidCtxTjjyvPRyWSQCxA5sUzXcLc="; qt5Sha256 = "sha256-zTUTsSzy4p0Y7RPOidCtxTjjyvPRyWSQCxA5sUzXcLc=";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "sierra-breeze-enhanced"; pname = "sierra-breeze-enhanced";
version = if useQt5 then qt5Version else latestVersion; version = if useQt5 then qt5Version else latestVersion;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kupiqu"; owner = "kupiqu";
repo = "SierraBreezeEnhanced"; repo = "SierraBreezeEnhanced";
rev = if version == "2.1.0" then "V.2.1.0" else "V${version}"; rev = if finalAttrs.version == "2.1.0" then "V.2.1.0" else "V${finalAttrs.version}";
sha256 = if useQt5 then qt5Sha256 else latestSha256; sha256 = if useQt5 then qt5Sha256 else latestSha256;
}; };
@@ -46,4 +46,4 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Only; license = licenses.gpl3Only;
maintainers = with maintainers; [ A1ca7raz ]; maintainers = with maintainers; [ A1ca7raz ];
}; };
} })

View File

@@ -8,13 +8,13 @@
gitUpdater, gitUpdater,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation {
pname = "layan-kde"; pname = "layan-kde";
version = "unstable-2023-09-30"; version = "unstable-2023-09-30";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "vinceliuice"; owner = "vinceliuice";
repo = pname; repo = "layan-kde";
rev = "7ab7cd7461dae8d8d6228d3919efbceea5f4272c"; rev = "7ab7cd7461dae8d8d6228d3919efbceea5f4272c";
hash = "sha256-Wh8tZcQEdTTlgtBf4ovapojHcpPBZDDkWOclmxZv9zA="; hash = "sha256-Wh8tZcQEdTTlgtBf4ovapojHcpPBZDDkWOclmxZv9zA=";
}; };

View File

@@ -31,14 +31,14 @@
destructionColor ? null, # Tertiary color for 'destructive' buttons (Default: #F44336 = Red500) destructionColor ? null, # Tertiary color for 'destructive' buttons (Default: #F44336 = Red500)
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "plata-theme"; pname = "plata-theme";
version = "0.9.9"; version = "0.9.9";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "tista500"; owner = "tista500";
repo = "plata-theme"; repo = "plata-theme";
rev = version; tag = finalAttrs.version;
sha256 = "1iwvlv9qcrjyfbzab00vjqafmp3vdybz1hi02r6lwbgvwyfyrifk"; sha256 = "1iwvlv9qcrjyfbzab00vjqafmp3vdybz1hi02r6lwbgvwyfyrifk";
}; };
@@ -107,4 +107,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.tadfisher ]; maintainers = [ maintainers.tadfisher ];
}; };
} })

View File

@@ -9,13 +9,13 @@
plasma-workspace, plasma-workspace,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation {
pname = "utterly-nord-plasma"; pname = "utterly-nord-plasma";
version = "3.2"; version = "3.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "HimDek"; owner = "HimDek";
repo = pname; repo = "utterly-nord-plasma";
rev = "e513b4dfeddd587a34bfdd9ba6b1d1eac8ecadf5"; rev = "e513b4dfeddd587a34bfdd9ba6b1d1eac8ecadf5";
hash = "sha256-moLgBFR+BgoiEBzV3y/LA6JZfLHrG1weL1+h8LN9ztA="; hash = "sha256-moLgBFR+BgoiEBzV3y/LA6JZfLHrG1weL1+h8LN9ztA=";
}; };

View File

@@ -29,12 +29,12 @@ let
]; ];
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
inherit pname desktopItems; inherit pname desktopItems;
version = "1.01b"; version = "1.01b";
src = fetchurl { src = fetchurl {
url = "https://github.com/SimonLarsen/90-Second-Portraits/releases/download/${version}/${pname}-${version}.love"; url = "https://github.com/SimonLarsen/90-Second-Portraits/releases/download/${finalAttrs.version}/${pname}-${finalAttrs.version}.love";
sha256 = "0jj3k953r6vb02212gqcgqpb4ima87gnqgls43jmylxq2mcm33h5"; sha256 = "0jj3k953r6vb02212gqcgqpb4ima87gnqgls43jmylxq2mcm33h5";
}; };
@@ -67,5 +67,4 @@ stdenv.mkDerivation rec {
]; ];
downloadPage = "http://tangramgames.dk/games/90secondportraits"; downloadPage = "http://tangramgames.dk/games/90secondportraits";
}; };
})
}

View File

@@ -4,12 +4,12 @@
fetchurl, fetchurl,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "amoeba-data"; pname = "amoeba-data";
version = "1.1"; version = "1.1";
src = fetchurl { src = fetchurl {
url = "http://http.debian.net/debian/pool/non-free/a/amoeba-data/amoeba-data_${version}.orig.tar.gz"; url = "http://http.debian.net/debian/pool/non-free/a/amoeba-data/amoeba-data_${finalAttrs.version}.orig.tar.gz";
sha256 = "1bgclr1v63n14bj9nwzm5zxg48nm0cla9bq1rbd5ylxra18k0jbg"; sha256 = "1bgclr1v63n14bj9nwzm5zxg48nm0cla9bq1rbd5ylxra18k0jbg";
}; };
@@ -25,4 +25,4 @@ stdenv.mkDerivation rec {
maintainers = [ maintainers.dezgeg ]; maintainers = [ maintainers.dezgeg ];
platforms = platforms.all; platforms = platforms.all;
}; };
} })

View File

@@ -14,18 +14,18 @@
installShellFiles, installShellFiles,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "amoeba"; pname = "amoeba";
version = "1.1"; version = "1.1";
debver = "31"; debver = "31";
srcs = [ srcs = [
(fetchurl { (fetchurl {
url = "http://http.debian.net/debian/pool/contrib/a/amoeba/amoeba_${version}.orig.tar.gz"; url = "http://http.debian.net/debian/pool/contrib/a/amoeba/amoeba_${finalAttrs.version}.orig.tar.gz";
hash = "sha256-NT6oMuAlTcVZEnYjMCF+BD+k3/w7LfWEmj6bkQln3sM="; hash = "sha256-NT6oMuAlTcVZEnYjMCF+BD+k3/w7LfWEmj6bkQln3sM=";
}) })
(fetchurl { (fetchurl {
url = "http://http.debian.net/debian/pool/contrib/a/amoeba/amoeba_${version}-${debver}.debian.tar.xz"; url = "http://http.debian.net/debian/pool/contrib/a/amoeba/amoeba_${finalAttrs.version}-${finalAttrs.debver}.debian.tar.xz";
hash = "sha256-Ga/YeXbPXjkG/6qd9Z201d14Hlj/Je6DxgzeIQOqrWc="; hash = "sha256-Ga/YeXbPXjkG/6qd9Z201d14Hlj/Je6DxgzeIQOqrWc=";
}) })
]; ];
@@ -67,4 +67,4 @@ stdenv.mkDerivation rec {
maintainers = [ maintainers.dezgeg ]; maintainers = [ maintainers.dezgeg ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} })

View File

@@ -32,14 +32,14 @@ let
; ;
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "arx-libertatis"; pname = "arx-libertatis";
version = "1.2.1"; version = "1.2.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "arx"; owner = "arx";
repo = "ArxLibertatis"; repo = "ArxLibertatis";
rev = version; tag = finalAttrs.version;
sha256 = "GBJcsibolZP3oVOTSaiVqG2nMmvXonKTp5i/0NNODKY="; sha256 = "GBJcsibolZP3oVOTSaiVqG2nMmvXonKTp5i/0NNODKY=";
}; };
@@ -96,5 +96,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ rnhmjoj ]; maintainers = with maintainers; [ rnhmjoj ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
})
}

View File

@@ -35,14 +35,14 @@
xxHash, xxHash,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "chiaki-ng"; pname = "chiaki-ng";
version = "1.9.7"; version = "1.9.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "streetpea"; owner = "streetpea";
repo = "chiaki-ng"; repo = "chiaki-ng";
rev = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-dAb4RGRCC6pCpfLxUJO7pFnqNm1icaU3v1n+HhJILe0="; hash = "sha256-dAb4RGRCC6pCpfLxUJO7pFnqNm1icaU3v1n+HhJILe0=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
@@ -126,4 +126,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
mainProgram = "chiaki"; mainProgram = "chiaki";
}; };
} })

View File

@@ -10,12 +10,12 @@
libglut ? null, libglut ? null,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "construo"; pname = "construo";
version = "0.2.3"; version = "0.2.3";
src = fetchurl { src = fetchurl {
url = "https://github.com/Construo/construo/releases/download/v${version}/${pname}-${version}.tar.gz"; url = "https://github.com/Construo/construo/releases/download/v${finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
sha256 = "1wmj527hbj1qv44cdsj6ahfjrnrjwg2dp8gdick8nd07vm062qxa"; sha256 = "1wmj527hbj1qv44cdsj6ahfjrnrjwg2dp8gdick8nd07vm062qxa";
}; };
@@ -40,4 +40,4 @@ stdenv.mkDerivation rec {
homepage = "http://fs.fsf.org/construo/"; homepage = "http://fs.fsf.org/construo/";
license = lib.licenses.gpl3; license = lib.licenses.gpl3;
}; };
} })

View File

@@ -25,21 +25,21 @@
buildPackages, buildPackages,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "crawl${lib.optionalString tileMode "-tiles"}"; pname = "crawl${lib.optionalString tileMode "-tiles"}";
version = "0.32.1"; version = "0.32.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "crawl"; owner = "crawl";
repo = "crawl"; repo = "crawl";
rev = version; tag = finalAttrs.version;
hash = "sha256-jhjFC8+A2dQomMwKZPSiEViXeQpty2Dk9alDcNsLvq0="; hash = "sha256-jhjFC8+A2dQomMwKZPSiEViXeQpty2Dk9alDcNsLvq0=";
}; };
# Patch hard-coded paths and remove force library builds # Patch hard-coded paths and remove force library builds
postPatch = '' postPatch = ''
substituteInPlace crawl-ref/source/util/find_font \ substituteInPlace crawl-ref/source/util/find_font \
--replace '/usr/share/fonts /usr/local/share/fonts /usr/*/lib/X11/fonts' '${fontsPath}/share/fonts' --replace '/usr/share/fonts /usr/local/share/fonts /usr/*/lib/X11/fonts' '${finalAttrs.fontsPath}/share/fonts'
substituteInPlace crawl-ref/source/windowmanager-sdl.cc \ substituteInPlace crawl-ref/source/windowmanager-sdl.cc \
--replace 'SDL_image.h' 'SDL2/SDL_image.h' --replace 'SDL_image.h' 'SDL2/SDL_image.h'
''; '';
@@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
preBuild = preBuild =
'' ''
cd crawl-ref/source cd crawl-ref/source
echo "${version}" > util/release_ver echo "${finalAttrs.version}" > util/release_ver
patchShebangs 'util' patchShebangs 'util'
patchShebangs util/gen-mi-enum patchShebangs util/gen-mi-enum
rm -rf contrib rm -rf contrib
@@ -137,4 +137,4 @@ stdenv.mkDerivation rec {
]; ];
maintainers = [ maintainers.abbradar ]; maintainers = [ maintainers.abbradar ];
}; };
} })

View File

@@ -10,12 +10,12 @@
qtsvg, qtsvg,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "cutemaze"; pname = "cutemaze";
version = "1.3.5"; version = "1.3.5";
src = fetchurl { src = fetchurl {
url = "https://gottcode.org/cutemaze/cutemaze-${version}.tar.bz2"; url = "https://gottcode.org/cutemaze/cutemaze-${finalAttrs.version}.tar.bz2";
hash = "sha256-a+QIOD0TB0AGnqIUgtkMBZuPUCQbXp4NtZ6b0vk/J0c="; hash = "sha256-a+QIOD0TB0AGnqIUgtkMBZuPUCQbXp4NtZ6b0vk/J0c=";
}; };
@@ -57,4 +57,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ dotlambda ]; maintainers = with maintainers; [ dotlambda ];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} })

View File

@@ -5,12 +5,12 @@
deliantra-server, deliantra-server,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "deliantra-arch"; pname = "deliantra-arch";
version = "3.1"; version = "3.1";
src = fetchurl { src = fetchurl {
url = "http://dist.schmorp.de/deliantra/${pname}-${version}.tar.xz"; url = "http://dist.schmorp.de/deliantra/${finalAttrs.pname}-${finalAttrs.version}.tar.xz";
sha256 = "1xzhv48g90hwkzgx9nfjm81ivg6hchkik9ldimi8ijb4j393kvsz"; sha256 = "1xzhv48g90hwkzgx9nfjm81ivg6hchkik9ldimi8ijb4j393kvsz";
}; };
@@ -30,4 +30,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ ToxicFrog ]; maintainers = with maintainers; [ ToxicFrog ];
}; };
} })

View File

@@ -5,12 +5,12 @@
deliantra-server, deliantra-server,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "deliantra-maps"; pname = "deliantra-maps";
version = "3.1"; version = "3.1";
src = fetchurl { src = fetchurl {
url = "http://dist.schmorp.de/deliantra/${pname}-${version}.tar.xz"; url = "http://dist.schmorp.de/deliantra/${finalAttrs.pname}-${finalAttrs.version}.tar.xz";
sha256 = "0zbwzya28s1xpnbrmqkqvfrzns03zdjd8a9w9nk665aif6rw2zbz"; sha256 = "0zbwzya28s1xpnbrmqkqvfrzns03zdjd8a9w9nk665aif6rw2zbz";
}; };
@@ -30,4 +30,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ ToxicFrog ]; maintainers = with maintainers; [ ToxicFrog ];
}; };
} })

View File

@@ -36,12 +36,12 @@ let
YAMLLibYAML YAMLLibYAML
]; ];
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "deliantra-server"; pname = "deliantra-server";
version = "3.1"; version = "3.1";
src = fetchurl { src = fetchurl {
url = "http://dist.schmorp.de/deliantra/${pname}-${version}.tar.xz"; url = "http://dist.schmorp.de/deliantra/${finalAttrs.pname}-${finalAttrs.version}.tar.xz";
sha256 = "0v0m2m9fxq143aknh7jb3qj8bnpjrs3bpbbx07c18516y3izr71d"; sha256 = "0v0m2m9fxq143aknh7jb3qj8bnpjrs3bpbbx07c18516y3izr71d";
}; };
@@ -90,4 +90,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ ToxicFrog ]; maintainers = with maintainers; [ ToxicFrog ];
}; };
} })

View File

@@ -19,14 +19,14 @@
wrapGAppsHook3, wrapGAppsHook3,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "slade"; pname = "slade";
version = "3.2.7"; version = "3.2.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sirjuddington"; owner = "sirjuddington";
repo = "SLADE"; repo = "SLADE";
rev = version; rev = finalAttrs.version;
hash = "sha256-+i506uzO2q/9k7en6CKs4ui9gjszrMOYwW+V9W5Lvns="; hash = "sha256-+i506uzO2q/9k7en6CKs4ui9gjszrMOYwW+V9W5Lvns=";
}; };
@@ -71,4 +71,4 @@ stdenv.mkDerivation rec {
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ abbradar ]; maintainers = with lib.maintainers; [ abbradar ];
}; };
} })

View File

@@ -16,20 +16,20 @@ let
]; ];
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "fmod"; pname = "fmod";
version = "4.44.64"; version = "4.44.64";
shortVersion = builtins.replaceStrings [ "." ] [ "" ] version; shortVersion = builtins.replaceStrings [ "." ] [ "" ] finalAttrs.version;
src = fetchurl ( src = fetchurl (
if stdenv.hostPlatform.isLinux then if stdenv.hostPlatform.isLinux then
{ {
url = "https://zdoom.org/files/fmod/fmodapi${shortVersion}linux.tar.gz"; url = "https://zdoom.org/files/fmod/fmodapi${finalAttrs.shortVersion}linux.tar.gz";
sha256 = "047hk92xapwwqj281f4zwl0ih821rrliya70gfj82sdfjh9lz8i1"; sha256 = "047hk92xapwwqj281f4zwl0ih821rrliya70gfj82sdfjh9lz8i1";
} }
else else
{ {
url = "https://zdoom.org/files/fmod/fmodapi${shortVersion}mac-installer.dmg"; url = "https://zdoom.org/files/fmod/fmodapi${finalAttrs.shortVersion}mac-installer.dmg";
sha256 = "1m1y4cpcwpkl8x31d3s68xzp107f343ma09w2437i2adn5y7m8ii"; sha256 = "1m1y4cpcwpkl8x31d3s68xzp107f343ma09w2437i2adn5y7m8ii";
} }
); );
@@ -42,8 +42,8 @@ stdenv.mkDerivation rec {
installPhase = installPhase =
lib.optionalString stdenv.hostPlatform.isLinux '' lib.optionalString stdenv.hostPlatform.isLinux ''
install -Dm755 api/lib/libfmodex${bits}-${version}.so $out/lib/libfmodex-${version}.so install -Dm755 api/lib/libfmodex${bits}-${finalAttrs.version}.so $out/lib/libfmodex-${finalAttrs.version}.so
ln -s libfmodex-${version}.so $out/lib/libfmodex.so ln -s libfmodex-${finalAttrs.version}.so $out/lib/libfmodex.so
patchelf --set-rpath ${libPath} $out/lib/libfmodex.so patchelf --set-rpath ${libPath} $out/lib/libfmodex.so
'' ''
+ lib.optionalString stdenv.hostPlatform.isDarwin '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
@@ -65,4 +65,4 @@ stdenv.mkDerivation rec {
]; ];
maintainers = [ maintainers.lassulus ]; maintainers = [ maintainers.lassulus ];
}; };
} })

View File

@@ -8,7 +8,7 @@
makeDesktopItem, makeDesktopItem,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "duckmarines"; pname = "duckmarines";
version = "1.0c"; version = "1.0c";
@@ -19,8 +19,8 @@ stdenv.mkDerivation rec {
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
name = "duckmarines"; name = "duckmarines";
exec = pname; exec = "duckmarines";
icon = icon; icon = finalAttrs.icon;
comment = "Duck-themed action puzzle video game"; comment = "Duck-themed action puzzle video game";
desktopName = "Duck Marines"; desktopName = "Duck Marines";
genericName = "duckmarines"; genericName = "duckmarines";
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
}; };
src = fetchurl { src = fetchurl {
url = "https://github.com/SimonLarsen/${pname}/releases/download/v${version}/${pname}-1.0c.love"; url = "https://github.com/SimonLarsen/${finalAttrs.pname}/releases/download/v${finalAttrs.version}/${finalAttrs.pname}-1.0c.love";
sha256 = "1rvgpkvi4h9zhc4fwb4knhsa789yjcx4a14fi4vqfdyybhvg5sh9"; sha256 = "1rvgpkvi4h9zhc4fwb4knhsa789yjcx4a14fi4vqfdyybhvg5sh9";
}; };
@@ -44,13 +44,14 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin mkdir -p $out/bin
mkdir -p $out/share/games/lovegames mkdir -p $out/share/games/lovegames
cp -v ${src} $out/share/games/lovegames/${pname}.love cp -v $src $out/share/games/lovegames/duckmarines.love
makeWrapper ${love}/bin/love $out/bin/${pname} --add-flags $out/share/games/lovegames/${pname}.love makeWrapper ${love}/bin/love $out/bin/duckmarines \
--add-flags $out/share/games/lovegames/duckmarines.love
chmod +x $out/bin/${pname} chmod +x $out/bin/duckmarines
mkdir -p $out/share/applications mkdir -p $out/share/applications
ln -s ${desktopItem}/share/applications/* $out/share/applications/ ln -s ${finalAttrs.desktopItem}/share/applications/* $out/share/applications/
''; '';
meta = with lib; { meta = with lib; {
@@ -61,5 +62,4 @@ stdenv.mkDerivation rec {
license = licenses.free; license = licenses.free;
downloadPage = "http://tangramgames.dk/games/duckmarines"; downloadPage = "http://tangramgames.dk/games/duckmarines";
}; };
})
}

View File

@@ -14,7 +14,7 @@
hash ? dfVersions.therapist.git.outputHash, hash ? dfVersions.therapist.git.outputHash,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation {
pname = "dwarf-therapist"; pname = "dwarf-therapist";
inherit version; inherit version;

View File

@@ -15,13 +15,13 @@
}, },
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
version = "2016-1_196"; version = "2016-1_196";
dfVersion = "0.44.12"; dfVersion = "0.44.12";
inherit soundPack; inherit soundPack;
pname = "soundsense"; pname = "soundsense";
src = fetchzip { src = fetchzip {
url = "https://df.zweistein.cz/soundsense/soundSense_${version}.zip"; url = "https://df.zweistein.cz/soundsense/soundSense_${finalAttrs.version}.zip";
hash = "sha256-c+LOUxmJaZ3VqVOBYSQypiZxWyNAXOlRQVD3QZPReb4="; hash = "sha256-c+LOUxmJaZ3VqVOBYSQypiZxWyNAXOlRQVD3QZPReb4=";
}; };
nativeBuildInputs = [ dos2unix ]; nativeBuildInputs = [ dos2unix ];
@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
ln -s $out/soundsense/dfhack $out/hack ln -s $out/soundsense/dfhack $out/hack
ln -s $soundPack $out/soundsense/packs ln -s $soundPack $out/soundsense/packs
''; '';
passthru = { inherit version dfVersion; }; passthru = { inherit (finalAttrs) version dfVersion; };
meta = { meta = {
description = "Plays sound based on Dwarf Fortress game logs"; description = "Plays sound based on Dwarf Fortress game logs";
maintainers = with lib.maintainers; [ maintainers = with lib.maintainers; [
@@ -46,4 +46,4 @@ stdenv.mkDerivation rec {
platforms = lib.platforms.all; platforms = lib.platforms.all;
homepage = "https://df.zweistein.cz/soundsense"; homepage = "https://df.zweistein.cz/soundsense";
}; };
} })

View File

@@ -11,12 +11,12 @@ let
let let
pname = "descent${toString ver}"; pname = "descent${toString ver}";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
name = "${pname}-assets-${version}"; name = "${pname}-assets-${finalAttrs.version}";
version = "2.0.0.7"; version = "2.0.0.7";
src = requireFile rec { src = requireFile rec {
name = "setup_descent12_${version}.exe"; name = "setup_descent12_${finalAttrs.version}.exe";
sha256 = "1r1drbfda6czg21f9qqiiwgnkpszxgmcn5bafp5ljddh34swkn3f"; sha256 = "1r1drbfda6czg21f9qqiiwgnkpszxgmcn5bafp5ljddh34swkn3f";
message = '' message = ''
While the Descent ${toString ver} game engine is free, the game assets are not. While the Descent ${toString ver} game engine is free, the game assets are not.
@@ -55,7 +55,7 @@ let
maintainers = with maintainers; [ peterhoeg ]; maintainers = with maintainers; [ peterhoeg ];
hydraPlatforms = [ ]; hydraPlatforms = [ ];
}; };
}; });
in in
{ {

View File

@@ -37,7 +37,7 @@
let let
version = "2024.1.1"; version = "2024.1.1";
data = stdenv.mkDerivation rec { data = stdenv.mkDerivation {
pname = "flightgear-data"; pname = "flightgear-data";
inherit version; inherit version;
@@ -52,11 +52,11 @@ let
installPhase = '' installPhase = ''
mkdir -p "$out/share/FlightGear" mkdir -p "$out/share/FlightGear"
cp ${src}/* -a "$out/share/FlightGear/" cp $src/* -a "$out/share/FlightGear/"
''; '';
}; };
in in
stdenv.mkDerivation rec { stdenv.mkDerivation {
pname = "flightgear"; pname = "flightgear";
# inheriting data for `nix-prefetch-url -A pkgs.flightgear.data.src` # inheriting data for `nix-prefetch-url -A pkgs.flightgear.data.src`
inherit version data; inherit version data;

View File

@@ -8,12 +8,12 @@
libjpeg, libjpeg,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "fltrator"; pname = "fltrator";
version = "2.3"; version = "2.3";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/fltrator/fltrator-${version}-code.zip"; url = "mirror://sourceforge/fltrator/fltrator-${finalAttrs.version}-code.zip";
sha256 = "125aqq1sfrm0c9cm6gyylwdmc8xrb0rjf563xvw7q28sdbl6ayp7"; sha256 = "125aqq1sfrm0c9cm6gyylwdmc8xrb0rjf563xvw7q28sdbl6ayp7";
}; };
@@ -60,5 +60,4 @@ stdenv.mkDerivation rec {
maintainers = [ maintainers.marius851000 ]; maintainers = [ maintainers.marius851000 ];
license = licenses.gpl3; license = licenses.gpl3;
}; };
})
}

View File

@@ -33,14 +33,14 @@
sqlite, sqlite,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "freeciv"; pname = "freeciv";
version = "3.1.4"; version = "3.1.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "freeciv"; owner = "freeciv";
repo = "freeciv"; repo = "freeciv";
rev = "R${lib.replaceStrings [ "." ] [ "_" ] version}"; rev = "R${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
hash = "sha256-lT3sXD5lFjG/63eBXEG+rU9idem/8kXfUXj6iB3AGOg="; hash = "sha256-lT3sXD5lFjG/63eBXEG+rU9idem/8kXfUXj6iB3AGOg=";
}; };
@@ -137,4 +137,4 @@ stdenv.mkDerivation rec {
hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin
broken = qtClient && stdenv.hostPlatform.isDarwin; # Missing Qt5 development files broken = qtClient && stdenv.hostPlatform.isDarwin; # Missing Qt5 development files
}; };
} })

View File

@@ -7,7 +7,7 @@
allegro, allegro,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "garden-of-coloured-lights"; pname = "garden-of-coloured-lights";
version = "1.0.9"; version = "1.0.9";
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
''; '';
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/garden/${version}/garden-${version}.tar.gz"; url = "mirror://sourceforge/garden/${finalAttrs.version}/garden-${finalAttrs.version}.tar.gz";
sha256 = "1qsj4d7r22m5f9f5f6cyvam1y5q5pbqvy5058r7w0k4s48n77y6s"; sha256 = "1qsj4d7r22m5f9f5f6cyvam1y5q5pbqvy5058r7w0k4s48n77y6s";
}; };
@@ -40,5 +40,4 @@ stdenv.mkDerivation rec {
maintainers = [ ]; maintainers = [ ];
license = licenses.gpl3; license = licenses.gpl3;
}; };
})
}

View File

@@ -12,20 +12,20 @@
makeWrapper, makeWrapper,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "iortcw-sp"; pname = "iortcw-sp";
version = "1.51c"; version = "1.51c";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "iortcw"; owner = "iortcw";
repo = "iortcw"; repo = "iortcw";
rev = version; tag = finalAttrs.version;
sha256 = "0g5wgqb1gm34pd05dj2i8nj3qhsz0831p3m7bsgxpjcg9c00jpyw"; sha256 = "0g5wgqb1gm34pd05dj2i8nj3qhsz0831p3m7bsgxpjcg9c00jpyw";
}; };
enableParallelBuilding = true; enableParallelBuilding = true;
sourceRoot = "${src.name}/SP"; sourceRoot = "${finalAttrs.src.name}/SP";
makeFlags = [ makeFlags = [
"USE_INTERNAL_LIBS=0" "USE_INTERNAL_LIBS=0"
@@ -60,10 +60,10 @@ stdenv.mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
inherit (finalAttrs.src.meta) homepage;
description = "Single player version of game engine for Return to Castle Wolfenstein"; description = "Single player version of game engine for Return to Castle Wolfenstein";
homepage = src.meta.homepage;
license = licenses.gpl3; license = licenses.gpl3;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ rjpcasalino ]; maintainers = with maintainers; [ rjpcasalino ];
}; };
} })

View File

@@ -51,7 +51,7 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation {
inherit pname version; inherit pname version;
src = [ main_src ] ++ optional useProprietaryAssets assets_src; src = [ main_src ] ++ optional useProprietaryAssets assets_src;

View File

@@ -10,14 +10,14 @@
zlib, zlib,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "leela-zero"; pname = "leela-zero";
version = "0.17"; version = "0.17";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gcp"; owner = "gcp";
repo = "leela-zero"; repo = "leela-zero";
rev = "v${version}"; rev = "v${finalAttrs.version}";
hash = "sha256-AQRp2rkL9KCZdsJN6uz2Y+3kV4lyRLYjWn0p7UOjBMw="; hash = "sha256-AQRp2rkL9KCZdsJN6uz2Y+3kV4lyRLYjWn0p7UOjBMw=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
@@ -44,4 +44,4 @@ stdenv.mkDerivation rec {
]; ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} })

View File

@@ -8,14 +8,14 @@
qtwayland, qtwayland,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "libremines"; pname = "libremines";
version = "2.0.1"; version = "2.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Bollos00"; owner = "Bollos00";
repo = pname; repo = "libremines";
rev = "v${version}"; rev = "v${finalAttrs.version}";
hash = "sha256-TQwjEgtqAvKnrpia6VloRgFwtq5TNDmxU+ZWjtEK/n8="; hash = "sha256-TQwjEgtqAvKnrpia6VloRgFwtq5TNDmxU+ZWjtEK/n8=";
}; };
@@ -45,4 +45,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ aleksana ]; maintainers = with maintainers; [ aleksana ];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} })

View File

@@ -12,12 +12,12 @@
zlib, zlib,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "lincity"; pname = "lincity";
version = "1.13.1"; version = "1.13.1";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/lincity/${pname}-${version}.tar.gz"; url = "mirror://sourceforge/lincity/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
sha256 = "0p81wl7labyfb6rgp0hi42l2akn3n7r2bnxal1wyvjylzw8vsk3v"; sha256 = "0p81wl7labyfb6rgp0hi42l2akn3n7r2bnxal1wyvjylzw8vsk3v";
}; };
@@ -77,4 +77,4 @@ stdenv.mkDerivation rec {
# ../lcintl.h:14:10: fatal error: 'libintl.h' file not found # ../lcintl.h:14:10: fatal error: 'libintl.h' file not found
broken = stdenv.hostPlatform.isDarwin; broken = stdenv.hostPlatform.isDarwin;
}; };
} })

View File

@@ -18,7 +18,7 @@
wrapGAppsHook3, wrapGAppsHook3,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "linthesia"; pname = "linthesia";
version = "unstable-2023-05-23"; version = "unstable-2023-05-23";
@@ -55,9 +55,9 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "Game of playing music using a MIDI keyboard following a MIDI file"; description = "Game of playing music using a MIDI keyboard following a MIDI file";
mainProgram = "linthesia"; mainProgram = "linthesia";
inherit (src.meta) homepage; inherit (finalAttrs.src.meta) homepage;
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ ]; maintainers = [ ];
}; };
} })

View File

@@ -4,11 +4,11 @@
fetchurl, fetchurl,
allegro, allegro,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
version = "5.6.5"; version = "5.6.5";
pname = "liquidwar5"; pname = "liquidwar5";
src = fetchurl { src = fetchurl {
url = "http://www.ufoot.org/download/liquidwar/v5/${version}/liquidwar-${version}.tar.gz"; url = "http://www.ufoot.org/download/liquidwar/v5/${finalAttrs.version}/liquidwar-${finalAttrs.version}.tar.gz";
sha256 = "2tCqhN1BbK0FVCHtm0DfOe+ueNPfdZwFg8ZMVPfy/18="; sha256 = "2tCqhN1BbK0FVCHtm0DfOe+ueNPfdZwFg8ZMVPfy/18=";
}; };
@@ -33,4 +33,4 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
platforms = platforms.linux; platforms = platforms.linux;
}; };
} })

View File

@@ -28,12 +28,12 @@
pkg-config, pkg-config,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "liquidwar6"; pname = "liquidwar6";
version = "0.6.3902"; version = "0.6.3902";
src = fetchurl { src = fetchurl {
url = "mirror://gnu/liquidwar6/${pname}-${version}.tar.gz"; url = "mirror://gnu/liquidwar6/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
sha256 = "1976nnl83d8wspjhb5d5ivdvdxgb8lp34wp54jal60z4zad581fn"; sha256 = "1976nnl83d8wspjhb5d5ivdvdxgb8lp34wp54jal60z4zad581fn";
}; };
@@ -90,4 +90,4 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.linux; platforms = platforms.linux;
}; };
} })

View File

@@ -55,14 +55,14 @@ let
] ]
); );
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "mudlet"; pname = "mudlet";
version = "4.17.2"; version = "4.17.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Mudlet"; owner = "Mudlet";
repo = "Mudlet"; repo = "Mudlet";
rev = "Mudlet-${version}"; tag = "Mudlet-${finalAttrs.version}";
fetchSubmodules = true; fetchSubmodules = true;
hash = "sha256-K75frptePKfHeGQNXaX4lKsLwO6Rs6AAka6hvP8MA+k="; hash = "sha256-K75frptePKfHeGQNXaX4lKsLwO6Rs6AAka6hvP8MA+k=";
}; };
@@ -175,4 +175,4 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
mainProgram = "mudlet"; mainProgram = "mudlet";
}; };
} })

View File

@@ -47,7 +47,7 @@ let
]; ];
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
version = "3.6.7"; version = "3.6.7";
pname = pname =
if x11Mode then if x11Mode then
@@ -58,8 +58,8 @@ stdenv.mkDerivation rec {
"nethack"; "nethack";
src = fetchurl { src = fetchurl {
url = "https://nethack.org/download/${version}/nethack-${ url = "https://nethack.org/download/${finalAttrs.version}/nethack-${
lib.replaceStrings [ "." ] [ "" ] version lib.replaceStrings [ "." ] [ "" ] finalAttrs.version
}-src.tgz"; }-src.tgz";
sha256 = "sha256-mM9n323r+WaKYXRaqEwJvKs2Ll0z9blE7FFV1E0qrLI="; sha256 = "sha256-mM9n323r+WaKYXRaqEwJvKs2Ll0z9blE7FFV1E0qrLI=";
}; };
@@ -230,4 +230,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ abbradar ]; maintainers = with maintainers; [ abbradar ];
mainProgram = "nethack"; mainProgram = "nethack";
}; };
} })

View File

@@ -5,12 +5,12 @@
ncurses, ncurses,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "npush"; pname = "npush";
version = "0.7"; version = "0.7";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/project/npush/${pname}/${version}/${pname}-${version}.tgz"; url = "mirror://sourceforge/project/npush/${finalAttrs.pname}/${finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tgz";
hash = "sha256-8hbSsyeehzd4T3fUhDyebyI/oTHOHr3a8ArYAquivNk="; hash = "sha256-8hbSsyeehzd4T3fUhDyebyI/oTHOHr3a8ArYAquivNk=";
}; };
@@ -51,4 +51,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ ];
platforms = with platforms; unix; platforms = with platforms; unix;
}; };
} })

View File

@@ -27,21 +27,21 @@ let
}; };
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "openloco"; pname = "openloco";
version = "25.02"; version = "25.02";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "OpenLoco"; owner = "OpenLoco";
repo = "OpenLoco"; repo = "OpenLoco";
tag = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-RsiEYBNx+Lf7OyyyCShQmgtwBuxDrZkRCYCbMmZ8ZMM="; hash = "sha256-RsiEYBNx+Lf7OyyyCShQmgtwBuxDrZkRCYCbMmZ8ZMM=";
}; };
postPatch = '' postPatch = ''
# the upstream build process determines the version tag from git; since we # the upstream build process determines the version tag from git; since we
# are not using a git checkout, we patch it manually # are not using a git checkout, we patch it manually
sed -i '/#define NAME "OpenLoco"/a#define OPENLOCO_VERSION_TAG "${version}"' src/OpenLoco/src/Version.cpp sed -i '/#define NAME "OpenLoco"/a#define OPENLOCO_VERSION_TAG "${finalAttrs.version}"' src/OpenLoco/src/Version.cpp
# prefetch sfl header sources # prefetch sfl header sources
grep -q 'GIT_TAG \+${sfl-src.tag}' thirdparty/CMakeLists.txt grep -q 'GIT_TAG \+${sfl-src.tag}' thirdparty/CMakeLists.txt
@@ -79,4 +79,4 @@ stdenv.mkDerivation rec {
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ icewind1991 ]; maintainers = with lib.maintainers; [ icewind1991 ];
}; };
} })

View File

@@ -64,14 +64,14 @@ let
}); });
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "openmw"; pname = "openmw";
version = "0.48.0"; version = "0.48.0";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "OpenMW"; owner = "OpenMW";
repo = "openmw"; repo = "openmw";
rev = "${pname}-${version}"; rev = "${finalAttrs.pname}-${finalAttrs.version}";
hash = "sha256-zkjVt3GfQZsFXl2Ht3lCuQtDMYQWxhdFO4aGSb3rsyo="; hash = "sha256-zkjVt3GfQZsFXl2Ht3lCuQtDMYQWxhdFO4aGSb3rsyo=";
}; };
@@ -130,4 +130,4 @@ stdenv.mkDerivation rec {
]; ];
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.linux ++ platforms.darwin;
}; };
} })

View File

@@ -53,12 +53,12 @@ let
sha256 = "sha256-Cgrg2m+uTODFg39mKgX+hE8atV7v5bVyZd716vSZB8M="; sha256 = "sha256-Cgrg2m+uTODFg39mKgX+hE8atV7v5bVyZd716vSZB8M=";
}; };
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "openttd"; pname = "openttd";
version = "14.1"; version = "14.1";
src = fetchzip { src = fetchzip {
url = "https://cdn.openttd.org/openttd-releases/${version}/${pname}-${version}-source.tar.xz"; url = "https://cdn.openttd.org/openttd-releases/${finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}-source.tar.xz";
hash = "sha256-YT4IE/rJ9pnpeMWKbOra6AbSUwW19RwOKlXkxwoMeKY="; hash = "sha256-YT4IE/rJ9pnpeMWKbOra6AbSUwW19RwOKlXkxwoMeKY=";
}; };
@@ -150,4 +150,4 @@ stdenv.mkDerivation rec {
fpletz fpletz
]; ];
}; };
} })

View File

@@ -12,14 +12,14 @@
zip, zip,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "orthorobot"; pname = "orthorobot";
version = "1.1.1"; version = "1.1.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Stabyourself"; owner = "Stabyourself";
repo = pname; repo = "orthorobot";
rev = "v${version}"; rev = "v${finalAttrs.version}";
sha256 = "1ca6hvd890kxmamsmsfiqzw15ngsvb4lkihjb6kabgmss61a6s5p"; sha256 = "1ca6hvd890kxmamsmsfiqzw15ngsvb4lkihjb6kabgmss61a6s5p";
}; };
@@ -31,8 +31,8 @@ stdenv.mkDerivation rec {
desktopItems = [ desktopItems = [
(makeDesktopItem { (makeDesktopItem {
name = "orthorobot"; name = "orthorobot";
exec = pname; exec = "orthorobot";
icon = icon; icon = finalAttrs.icon;
comment = "Robot game"; comment = "Robot game";
desktopName = "Orthorobot"; desktopName = "Orthorobot";
genericName = "orthorobot"; genericName = "orthorobot";
@@ -75,4 +75,4 @@ stdenv.mkDerivation rec {
license = licenses.free; license = licenses.free;
downloadPage = "https://stabyourself.net/orthorobot/"; downloadPage = "https://stabyourself.net/orthorobot/";
}; };
} })

View File

@@ -30,14 +30,14 @@ let
; ;
}; };
yquake2 = stdenv.mkDerivation rec { yquake2 = stdenv.mkDerivation (finalAttrs: {
pname = "yquake2"; pname = "yquake2";
version = "8.50"; version = "8.50";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "yquake2"; owner = "yquake2";
repo = "yquake2"; repo = "yquake2";
rev = "QUAKE2_${builtins.replaceStrings [ "." ] [ "_" ] version}"; rev = "QUAKE2_${builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
sha256 = "sha256-PR/Xw/u5auGFrrXnRsl2bAkOt8/JZWY3uGNfTHomAj8="; sha256 = "sha256-PR/Xw/u5auGFrrXnRsl2bAkOt8/JZWY3uGNfTHomAj8=";
}; };
@@ -101,7 +101,7 @@ let
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [ tadfisher ]; maintainers = with maintainers; [ tadfisher ];
}; };
}; });
in in
{ {

View File

@@ -30,7 +30,7 @@ let
toDrv = toDrv =
title: data: title: data:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
inherit (data) inherit (data)
id id
version version
@@ -42,16 +42,16 @@ let
pname = "yquake2-${title}"; pname = "yquake2-${title}";
src = fetchFromGitHub { src = fetchFromGitHub {
inherit sha256; inherit (finalAttrs) sha256;
owner = "yquake2"; owner = "yquake2";
repo = data.id; repo = data.id;
rev = "${lib.toUpper id}_${builtins.replaceStrings [ "." ] [ "_" ] version}"; rev = "${lib.toUpper finalAttrs.id}_${builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
}; };
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/lib/yquake2/${id} mkdir -p $out/lib/yquake2/${finalAttrs.id}
cp release/* $out/lib/yquake2/${id} cp release/* $out/lib/yquake2/${finalAttrs.id}
runHook postInstall runHook postInstall
''; '';
@@ -62,7 +62,7 @@ let
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [ tadfisher ]; maintainers = with maintainers; [ tadfisher ];
}; };
}; });
in in
lib.mapAttrs toDrv games lib.mapAttrs toDrv games

View File

@@ -20,16 +20,16 @@
useSDL2 ? stdenv.hostPlatform.isDarwin, # TODO: CoreAudio fails to initialize with SDL 1.x for some reason. useSDL2 ? stdenv.hostPlatform.isDarwin, # TODO: CoreAudio fails to initialize with SDL 1.x for some reason.
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "quakespasm"; pname = "quakespasm";
version = "0.96.3"; version = "0.96.3";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/quakespasm/quakespasm-${version}.tar.gz"; url = "mirror://sourceforge/quakespasm/quakespasm-${finalAttrs.version}.tar.gz";
sha256 = "sha256-tXjWzkpPf04mokRY8YxLzI04VK5iUuuZgu6B2V5QGA4="; sha256 = "sha256-tXjWzkpPf04mokRY8YxLzI04VK5iUuuZgu6B2V5QGA4=";
}; };
sourceRoot = "${pname}-${version}/Quake"; sourceRoot = "${finalAttrs.pname}-${finalAttrs.version}/Quake";
patches = lib.optionals stdenv.hostPlatform.isDarwin [ patches = lib.optionals stdenv.hostPlatform.isDarwin [
# Makes Darwin Makefile use system libraries instead of ones from app bundle # Makes Darwin Makefile use system libraries instead of ones from app bundle
@@ -130,4 +130,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ mikroskeem ]; maintainers = with maintainers; [ mikroskeem ];
mainProgram = "quake"; mainProgram = "quake";
}; };
} })

View File

@@ -5,15 +5,15 @@
ncurses, ncurses,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "rogue"; pname = "rogue";
version = "5.4.4"; version = "5.4.4";
src = fetchurl { src = fetchurl {
urls = [ urls = [
"https://src.fedoraproject.org/repo/pkgs/rogue/rogue${version}-src.tar.gz/033288f46444b06814c81ea69d96e075/rogue${version}-src.tar.gz" "https://src.fedoraproject.org/repo/pkgs/rogue/rogue${finalAttrs.version}-src.tar.gz/033288f46444b06814c81ea69d96e075/rogue${finalAttrs.version}-src.tar.gz"
"http://ftp.vim.org/ftp/pub/ftp/os/Linux/distr/slitaz/sources/packages-cooking/r/rogue${version}-src.tar.gz" "http://ftp.vim.org/ftp/pub/ftp/os/Linux/distr/slitaz/sources/packages-cooking/r/rogue${finalAttrs.version}-src.tar.gz"
"http://rogue.rogueforge.net/files/rogue${lib.versions.majorMinor version}/rogue${version}-src.tar.gz" "http://rogue.rogueforge.net/files/rogue${lib.versions.majorMinor finalAttrs.version}/rogue${finalAttrs.version}-src.tar.gz"
]; ];
sha256 = "18g81274d0f7sr04p7h7irz0d53j6kd9j1y3zbka1gcqq0gscdvx"; sha256 = "18g81274d0f7sr04p7h7irz0d53j6kd9j1y3zbka1gcqq0gscdvx";
}; };
@@ -28,4 +28,4 @@ stdenv.mkDerivation rec {
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ ]; maintainers = [ ];
}; };
} })

View File

@@ -22,12 +22,12 @@ let
''; '';
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "rott"; pname = "rott";
version = "1.1.2"; version = "1.1.2";
src = fetchurl { src = fetchurl {
url = "https://icculus.org/rott/releases/${pname}-${version}.tar.gz"; url = "https://icculus.org/rott/releases/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
sha256 = "1zr7v5dv2iqx40gzxbg8mhac7fxz3kqf28y6ysxv1xhjqgl1c98h"; sha256 = "1zr7v5dv2iqx40gzxbg8mhac7fxz3kqf28y6ysxv1xhjqgl1c98h";
}; };
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
SDL_mixer SDL_mixer
]; ];
sourceRoot = "rott-${version}/rott"; sourceRoot = "rott-${finalAttrs.version}/rott";
makeFlags = [ makeFlags = [
"SHAREWARE=${if buildShareware then "1" else "0"}" "SHAREWARE=${if buildShareware then "1" else "0"}"
@@ -71,4 +71,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ sander ]; maintainers = with maintainers; [ sander ];
platforms = platforms.all; platforms = platforms.all;
}; };
} })

View File

@@ -23,14 +23,14 @@
nix-update-script, nix-update-script,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "scummvm"; pname = "scummvm";
version = "2.9.0"; version = "2.9.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "scummvm"; owner = "scummvm";
repo = "scummvm"; repo = "scummvm";
rev = "v${version}"; rev = "v${finalAttrs.version}";
hash = "sha256-4/h1bzauYWNvG7skn6afF79t0KEdgYLZoeqeqRudH7I="; hash = "sha256-4/h1bzauYWNvG7skn6afF79t0KEdgYLZoeqeqRudH7I=";
}; };
@@ -92,4 +92,4 @@ stdenv.mkDerivation rec {
maintainers = [ maintainers.peterhoeg ]; maintainers = [ maintainers.peterhoeg ];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} })

View File

@@ -16,12 +16,12 @@
isMobile ? false, isMobile ? false,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "sgt-puzzles"; pname = "sgt-puzzles";
version = "20250303.7da4641"; version = "20250303.7da4641";
src = fetchurl { src = fetchurl {
url = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${version}.tar.gz"; url = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${finalAttrs.version}.tar.gz";
hash = "sha256-fwphR47zUV+H+Avjco0Dlb94TeH+s6v81MU/H+mbEAk="; hash = "sha256-fwphR47zUV+H+Avjco0Dlb94TeH+s6v81MU/H+mbEAk=";
}; };
@@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
--set-key Type --set-value Application \ --set-key Type --set-value Application \
--set-key Exec --set-value $i \ --set-key Exec --set-value $i \
--set-key Name --set-value $i \ --set-key Name --set-value $i \
--set-key Comment --set-value "${meta.description}" \ --set-key Comment --set-value "${finalAttrs.meta.description}" \
--set-key Categories --set-value "Game;LogicGame;X-sgt-puzzles;" \ --set-key Categories --set-value "Game;LogicGame;X-sgt-puzzles;" \
--set-key Icon --set-value $out/share/icons/hicolor/96x96/apps/$i-96d24.png \ --set-key Icon --set-value $out/share/icons/hicolor/96x96/apps/$i-96d24.png \
$i.desktop $i.desktop
@@ -72,7 +72,7 @@ stdenv.mkDerivation rec {
--set-key Icon --set-value $out/share/icons/hicolor/48x48/apps/sgt-puzzles_map \ --set-key Icon --set-value $out/share/icons/hicolor/48x48/apps/sgt-puzzles_map \
sgt-puzzles.directory sgt-puzzles.directory
install -Dm644 ${sgt-puzzles-menu} -t $out/etc/xdg/menus/applications-merged/ install -Dm644 ${finalAttrs.sgt-puzzles-menu} -t $out/etc/xdg/menus/applications-merged/
''; '';
passthru = { passthru = {
@@ -98,4 +98,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
homepage = "https://www.chiark.greenend.org.uk/~sgtatham/puzzles/"; homepage = "https://www.chiark.greenend.org.uk/~sgtatham/puzzles/";
}; };
} })

View File

@@ -12,13 +12,13 @@
SDL, SDL,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "soi"; pname = "soi";
version = "0.1.2"; version = "0.1.2";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/project/soi/Spheres%20of%20Influence-${version}-Source.tar.bz2"; url = "mirror://sourceforge/project/soi/Spheres%20of%20Influence-${finalAttrs.version}-Source.tar.bz2";
name = "${pname}-${version}.tar.bz2"; name = "${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
sha256 = "03c3wnvhd42qh8mi68lybf8nv6wzlm1nx16d6pdcn2jzgx1j2lzd"; sha256 = "03c3wnvhd42qh8mi68lybf8nv6wzlm1nx16d6pdcn2jzgx1j2lzd";
}; };
@@ -45,4 +45,4 @@ stdenv.mkDerivation rec {
license = licenses.free; license = licenses.free;
downloadPage = "https://sourceforge.net/projects/soi/files/"; downloadPage = "https://sourceforge.net/projects/soi/files/";
}; };
} })

View File

@@ -40,7 +40,7 @@ let
version = "2.3.0-r8786"; version = "2.3.0-r8786";
shortVersion = builtins.substring 0 5 version; shortVersion = builtins.substring 0 5 version;
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
inherit version; inherit version;
pname = "speed-dreams"; pname = "speed-dreams";
@@ -68,9 +68,9 @@ stdenv.mkDerivation rec {
postUnpack = '' postUnpack = ''
echo Unpacking data echo Unpacking data
tar -xf ${cars-and-tracks} tar -xf ${finalAttrs.cars-and-tracks}
tar -xf ${more-cars-and-tracks} tar -xf ${finalAttrs.more-cars-and-tracks}
tar -xf ${wip-cars-and-tracks} tar -xf ${finalAttrs.wip-cars-and-tracks}
''; '';
preBuild = '' preBuild = ''
@@ -154,4 +154,4 @@ stdenv.mkDerivation rec {
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
hydraPlatforms = [ ]; hydraPlatforms = [ ];
}; };
} })

View File

@@ -28,12 +28,12 @@
withAI ? true, # support for AI Interfaces and Skirmish AIs withAI ? true, # support for AI Interfaces and Skirmish AIs
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "spring"; pname = "spring";
version = "106.0"; version = "106.0";
src = fetchurl { src = fetchurl {
url = "https://springrts.com/dl/buildbot/default/master/${version}/source/spring_${version}_src.tar.gz"; url = "https://springrts.com/dl/buildbot/default/master/${finalAttrs.version}/source/spring_${finalAttrs.version}_src.tar.gz";
sha256 = "sha256-mSA4ioIv68NMEB72lYnwDb1QOuWr1VHwu4+grAoHlV0="; sha256 = "sha256-mSA4ioIv68NMEB72lYnwDb1QOuWr1VHwu4+grAoHlV0=";
}; };
@@ -104,4 +104,4 @@ stdenv.mkDerivation rec {
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
broken = true; broken = true;
}; };
} })

View File

@@ -24,12 +24,12 @@
jsoncpp, jsoncpp,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "springlobby"; pname = "springlobby";
version = "0.273"; version = "0.273";
src = fetchurl { src = fetchurl {
url = "https://springlobby.springrts.com/dl/stable/springlobby-${version}.tar.bz2"; url = "https://springlobby.springrts.com/dl/stable/springlobby-${finalAttrs.version}.tar.bz2";
sha256 = "sha256-XkU6i6ABCgw3H9vJu0xjHRO1BglueYM1LyJxcZdOrDk="; sha256 = "sha256-XkU6i6ABCgw3H9vJu0xjHRO1BglueYM1LyJxcZdOrDk=";
}; };
@@ -81,4 +81,4 @@ stdenv.mkDerivation rec {
"x86_64-linux" "x86_64-linux"
]; ];
}; };
} })

View File

@@ -12,12 +12,12 @@
writeScript, writeScript,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "starsector"; pname = "starsector";
version = "0.98a-RC7"; version = "0.98a-RC7";
src = fetchzip { src = fetchzip {
url = "https://f005.backblazeb2.com/file/fractalsoftworks/release/starsector_linux-${version}.zip"; url = "https://f005.backblazeb2.com/file/fractalsoftworks/release/starsector_linux-${finalAttrs.version}.zip";
sha256 = "sha256-qA4/9AvRWBOIbNKA9U8U7PoPmIwz8wgJZyYFln7LZHw="; sha256 = "sha256-qA4/9AvRWBOIbNKA9U8U7PoPmIwz8wgJZyYFln7LZHw=";
}; };
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
name = "starsector"; name = "starsector";
exec = "starsector"; exec = "starsector";
icon = "starsector"; icon = "starsector";
comment = meta.description; comment = finalAttrs.meta.description;
genericName = "starsector"; genericName = "starsector";
desktopName = "Starsector"; desktopName = "Starsector";
categories = [ "Game" ]; categories = [ "Game" ];
@@ -65,7 +65,7 @@ stdenv.mkDerivation rec {
xorg.xrandr xorg.xrandr
] ]
} \ } \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath buildInputs} \ --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath finalAttrs.buildInputs} \
--run 'mkdir -p ''${XDG_DATA_HOME:-~/.local/share}/starsector' \ --run 'mkdir -p ''${XDG_DATA_HOME:-~/.local/share}/starsector' \
--chdir "$out/share/starsector" --chdir "$out/share/starsector"
ln -s $out/share/starsector/starsector.sh $out/bin/starsector ln -s $out/share/starsector/starsector.sh $out/bin/starsector
@@ -92,7 +92,7 @@ stdenv.mkDerivation rec {
#!nix-shell -i bash -p curl gnugrep common-updater-scripts #!nix-shell -i bash -p curl gnugrep common-updater-scripts
set -eou pipefail; set -eou pipefail;
version=$(curl -s https://fractalsoftworks.com/preorder/ | grep -oP "https://f005.backblazeb2.com/file/fractalsoftworks/release/starsector_linux-\K.*?(?=\.zip)" | head -1) version=$(curl -s https://fractalsoftworks.com/preorder/ | grep -oP "https://f005.backblazeb2.com/file/fractalsoftworks/release/starsector_linux-\K.*?(?=\.zip)" | head -1)
update-source-version ${pname} "$version" --file=./pkgs/games/starsector/default.nix update-source-version ${finalAttrs.pname} "$version" --file=./pkgs/games/starsector/default.nix
''; '';
meta = with lib; { meta = with lib; {
@@ -105,4 +105,4 @@ stdenv.mkDerivation rec {
rafaelrc rafaelrc
]; ];
}; };
} })

View File

@@ -33,20 +33,20 @@ let
}; };
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "stuntrally"; pname = "stuntrally";
version = "2.7"; version = "2.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "stuntrally"; owner = "stuntrally";
repo = "stuntrally"; repo = "stuntrally";
rev = version; tag = finalAttrs.version;
hash = "sha256-0Eh9ilIHSh/Uz8TuPnXxLQfy7KF7qqNXUgBXQUCz9ys="; hash = "sha256-0Eh9ilIHSh/Uz8TuPnXxLQfy7KF7qqNXUgBXQUCz9ys=";
}; };
tracks = fetchFromGitHub { tracks = fetchFromGitHub {
owner = "stuntrally"; owner = "stuntrally";
repo = "tracks"; repo = "tracks";
rev = version; tag = finalAttrs.version;
hash = "sha256-fglm1FetFGHM/qGTtpxDb8+k2iAREn5DQR5GPujuLms="; hash = "sha256-fglm1FetFGHM/qGTtpxDb8+k2iAREn5DQR5GPujuLms=";
}; };
@@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
preConfigure = '' preConfigure = ''
rmdir data/tracks rmdir data/tracks
ln -s ${tracks}/ data/tracks ln -s ${finalAttrs.tracks}/ data/tracks
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
@@ -90,4 +90,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ pSub ]; maintainers = with maintainers; [ pSub ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} })

View File

@@ -9,12 +9,14 @@
libGL, libGL,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "tibia"; pname = "tibia";
version = "10.90"; version = "10.90";
src = fetchurl { src = fetchurl {
url = "http://static.tibia.com/download/tibia${lib.replaceStrings [ "." ] [ "" ] version}.tgz"; url = "http://static.tibia.com/download/tibia${
lib.replaceStrings [ "." ] [ "" ] finalAttrs.version
}.tgz";
sha256 = "11mkh2dynmbpay51yfaxm5dmcys3rnpk579s9ypfkhblsrchbkhx"; sha256 = "11mkh2dynmbpay51yfaxm5dmcys3rnpk579s9ypfkhblsrchbkhx";
}; };
@@ -70,4 +72,4 @@ stdenv.mkDerivation rec {
platforms = [ "i686-linux" ]; platforms = [ "i686-linux" ];
maintainers = [ ]; maintainers = [ ];
}; };
} })

View File

@@ -17,7 +17,7 @@ let
buildDemo = buildDemo =
{ name, src }: { name, src }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
inherit name src; inherit name src;
nativeBuildInputs = [ nativeBuildInputs = [
@@ -43,7 +43,7 @@ let
binary=$(find . -executable -type f) binary=$(find . -executable -type f)
patchelf \ patchelf \
--set-interpreter $interpreter \ --set-interpreter $interpreter \
--set-rpath ${rtdeps} \ --set-rpath ${finalAttrs.rtdeps} \
"$binary" "$binary"
# Workaround on # Workaround on
@@ -69,7 +69,7 @@ let
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
license = lib.licenses.unfree; license = lib.licenses.unfree;
}; };
}; });
in in
{ {

View File

@@ -27,14 +27,14 @@
vcmi, vcmi,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "vcmi"; pname = "vcmi";
version = "1.6.8"; version = "1.6.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "vcmi"; owner = "vcmi";
repo = "vcmi"; repo = "vcmi";
rev = version; tag = finalAttrs.version;
fetchSubmodules = true; fetchSubmodules = true;
hash = "sha256-k6tkylNXEzU+zzYoFWtx+AkoHQzAwbBxPB2DVevsryw="; hash = "sha256-k6tkylNXEzU+zzYoFWtx+AkoHQzAwbBxPB2DVevsryw=";
}; };
@@ -100,7 +100,7 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "Open-source engine for Heroes of Might and Magic III"; description = "Open-source engine for Heroes of Might and Magic III";
homepage = "https://vcmi.eu"; homepage = "https://vcmi.eu";
changelog = "https://github.com/vcmi/vcmi/blob/${src.rev}/ChangeLog.md"; changelog = "https://github.com/vcmi/vcmi/blob/${finalAttrs.src.rev}/ChangeLog.md";
license = with licenses; [ license = with licenses; [
gpl2Plus gpl2Plus
cc-by-sa-40 cc-by-sa-40
@@ -109,4 +109,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
mainProgram = "vcmilauncher"; mainProgram = "vcmilauncher";
}; };
} })

View File

@@ -8,22 +8,22 @@
runtimeShell, runtimeShell,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "vessel"; pname = "vessel";
version = "12082012"; version = "12082012";
goBuyItNow = '' goBuyItNow = ''
We cannot download the full version automatically, as you require a license. We cannot download the full version automatically, as you require a license.
Once you bought a license, you need to add your downloaded version to the nix store. Once you bought a license, you need to add your downloaded version to the nix store.
You can do this by using "nix-prefetch-url file://\$PWD/vessel-${version}-bin" in the You can do this by using "nix-prefetch-url file://\$PWD/vessel-${finalAttrs.version}-bin" in the
directory where you saved it. directory where you saved it.
''; '';
src = src =
if (stdenv.hostPlatform.isi686) then if (stdenv.hostPlatform.isi686) then
requireFile { requireFile {
message = goBuyItNow; message = finalAttrs.goBuyItNow;
name = "vessel-${version}-bin"; name = "vessel-${finalAttrs.version}-bin";
sha256 = "1vpwcrjiln2mx43h7ib3jnccyr3chk7a5x2bw9kb4lw8ycygvg96"; sha256 = "1vpwcrjiln2mx43h7ib3jnccyr3chk7a5x2bw9kb4lw8ycygvg96";
} }
else else
@@ -100,5 +100,4 @@ stdenv.mkDerivation rec {
license = licenses.unfree; license = licenses.unfree;
maintainers = with maintainers; [ jcumming ]; maintainers = with maintainers; [ jcumming ];
}; };
})
}

View File

@@ -6,12 +6,12 @@
makeWrapper, makeWrapper,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "warsow"; pname = "warsow";
version = "2.1.2"; version = "2.1.2";
src = fetchurl { src = fetchurl {
url = "http://warsow.net/${pname}-${version}.tar.gz"; url = "http://warsow.net/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
sha256 = "07y2airw5qg3s1bf1c63a6snjj22riz0mqhk62jmfm9nrarhavrc"; sha256 = "07y2airw5qg3s1bf1c63a6snjj22riz0mqhk62jmfm9nrarhavrc";
}; };
@@ -44,4 +44,4 @@ stdenv.mkDerivation rec {
]; ];
platforms = warsow-engine.meta.platforms; platforms = warsow-engine.meta.platforms;
}; };
} })

View File

@@ -83,7 +83,7 @@ let
startupNotify = false; startupNotify = false;
}; };
xonotic-unwrapped = stdenv.mkDerivation rec { xonotic-unwrapped = stdenv.mkDerivation (finalAttrs: {
pname = "xonotic${variant}-unwrapped"; pname = "xonotic${variant}-unwrapped";
inherit version; inherit version;
@@ -117,7 +117,7 @@ let
# "debug", "release", "profile" # "debug", "release", "profile"
target = "release"; target = "release";
dontStrip = target != "release"; dontStrip = finalAttrs.target != "release";
postConfigure = '' postConfigure = ''
pushd ../d0_blind_id pushd ../d0_blind_id
@@ -128,13 +128,13 @@ let
buildPhase = buildPhase =
( (
lib.optionalString withDedicated '' lib.optionalString withDedicated ''
make -j $NIX_BUILD_CORES sv-${target} make -j $NIX_BUILD_CORES sv-${finalAttrs.target}
'' ''
+ lib.optionalString withGLX '' + lib.optionalString withGLX ''
make -j $NIX_BUILD_CORES cl-${target} make -j $NIX_BUILD_CORES cl-${finalAttrs.target}
'' ''
+ lib.optionalString withSDL '' + lib.optionalString withSDL ''
make -j $NIX_BUILD_CORES sdl-${target} make -j $NIX_BUILD_CORES sdl-${finalAttrs.target}
'' ''
) )
+ '' + ''
@@ -205,7 +205,7 @@ let
--add-needed ${libtheora}/lib/libtheora.so \ --add-needed ${libtheora}/lib/libtheora.so \
$out/bin/xonotic-sdl $out/bin/xonotic-sdl
''; '';
}; });
in in
rec { rec {

View File

@@ -12,12 +12,12 @@
SDL_image, SDL_image,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
version = "1.5.0"; version = "1.5.0";
pname = "bloodspilot-client"; pname = "bloodspilot-client";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/project/bloodspilot/client-sdl/v${version}/bloodspilot-client-sdl-${version}.tar.gz"; url = "mirror://sourceforge/project/bloodspilot/client-sdl/v${finalAttrs.version}/bloodspilot-client-sdl-${finalAttrs.version}.tar.gz";
sha256 = "1qwl95av5an2zl01m7saj6fyy49xpixga7gbn4lwbpgpqs1rbwxj"; sha256 = "1qwl95av5an2zl01m7saj6fyy49xpixga7gbn4lwbpgpqs1rbwxj";
}; };
@@ -44,4 +44,4 @@ stdenv.mkDerivation rec {
maintainers = [ lib.maintainers.raskin ]; maintainers = [ lib.maintainers.raskin ];
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} })

View File

@@ -5,12 +5,12 @@
expat, expat,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "bloodspilot-xpilot-fxi-server"; pname = "bloodspilot-xpilot-fxi-server";
version = "1.4.6"; version = "1.4.6";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/project/bloodspilot/server/server%20v${version}/xpilot-${version}fxi.tar.gz"; url = "mirror://sourceforge/project/bloodspilot/server/server%20v${finalAttrs.version}/xpilot-${finalAttrs.version}fxi.tar.gz";
sha256 = "0d7hnpshifq6gy9a0g6il6h1hgqqjyys36n8w84hr8d4nhg4d1ji"; sha256 = "0d7hnpshifq6gy9a0g6il6h1hgqqjyys36n8w84hr8d4nhg4d1ji";
}; };
@@ -31,4 +31,4 @@ stdenv.mkDerivation rec {
maintainers = [ maintainers.raskin ]; maintainers = [ maintainers.raskin ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} })

View File

@@ -14,11 +14,11 @@
zlib, zlib,
libXxf86misc, libXxf86misc,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "xpilot-ng"; pname = "xpilot-ng";
version = "4.7.3"; version = "4.7.3";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/xpilot/xpilot_ng/${pname}-${version}/${pname}-${version}.tar.gz"; url = "mirror://sourceforge/xpilot/xpilot_ng/${finalAttrs.pname}-${finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
sha256 = "02a7pnp88kh88fzda5q8mzlckk6y9r5fw47j00h26wbsfly0k1zj"; sha256 = "02a7pnp88kh88fzda5q8mzlckk6y9r5fw47j00h26wbsfly0k1zj";
}; };
buildInputs = [ buildInputs = [
@@ -47,4 +47,4 @@ stdenv.mkDerivation rec {
maintainers = [ maintainers.raskin ]; maintainers = [ maintainers.raskin ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} })

View File

@@ -16,12 +16,12 @@
}: }:
# kio-extras-kf5 is kind of part of Gear, but also not released all the time, # kio-extras-kf5 is kind of part of Gear, but also not released all the time,
# so handle it separately. # so handle it separately.
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "kio-extras-kf5"; pname = "kio-extras-kf5";
version = "24.02.2"; version = "24.02.2";
src = fetchurl { src = fetchurl {
url = "mirror://kde/stable/release-service/${version}/src/kio-extras-kf5-${version}.tar.xz"; url = "mirror://kde/stable/release-service/${finalAttrs.version}/src/kio-extras-kf5-${finalAttrs.version}.tar.xz";
hash = "sha256-qar1jzuALINBu6HOuVBU+RUFnqRH9Z/8e5M8ynGxKsk="; hash = "sha256-qar1jzuALINBu6HOuVBU+RUFnqRH9Z/8e5M8ynGxKsk=";
}; };
@@ -64,4 +64,4 @@ stdenv.mkDerivation rec {
]; ];
meta = kio-extras.meta; meta = kio-extras.meta;
} })

View File

@@ -10,14 +10,14 @@
libplasma, libplasma,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "applet-window-buttons6"; pname = "applet-window-buttons6";
version = "0.14.0"; version = "0.14.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "moodyhunter"; owner = "moodyhunter";
repo = "applet-window-buttons6"; repo = "applet-window-buttons6";
rev = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-HnlgBQKT99vVkl6DWqMkN8Vz+QzzZBGj5tqOJ22VkJ8="; hash = "sha256-HnlgBQKT99vVkl6DWqMkN8Vz+QzzZBGj5tqOJ22VkJ8=";
}; };
@@ -41,4 +41,4 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Only; license = licenses.gpl2Only;
maintainers = with maintainers; [ A1ca7raz ]; maintainers = with maintainers; [ A1ca7raz ];
}; };
} })

View File

@@ -8,19 +8,19 @@
kwidgetsaddons, kwidgetsaddons,
wrapQtAppsHook, wrapQtAppsHook,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "koi"; pname = "koi";
version = "0.4"; version = "0.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "baduhai"; owner = "baduhai";
repo = "Koi"; repo = "Koi";
rev = version; tag = finalAttrs.version;
sha256 = "sha256-ip7e/Sz/l5UiTFUTLJPorPO7NltE2Isij2MCmvHZV40="; sha256 = "sha256-ip7e/Sz/l5UiTFUTLJPorPO7NltE2Isij2MCmvHZV40=";
}; };
# See https://github.com/baduhai/Koi/blob/master/development/Nix%20OS/dev.nix # See https://github.com/baduhai/Koi/blob/master/development/Nix%20OS/dev.nix
sourceRoot = "${src.name}/src"; sourceRoot = "${finalAttrs.src.name}/src";
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
wrapQtAppsHook wrapQtAppsHook
@@ -52,4 +52,4 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/baduhai/Koi"; homepage = "https://github.com/baduhai/Koi";
maintainers = with lib.maintainers; [ fnune ]; maintainers = with lib.maintainers; [ fnune ];
}; };
} })