mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-16 05:38:57 +00:00
perfect_dark: adapt to new github owner name and update rev
This commit is contained in:
@@ -22,13 +22,13 @@ assert lib.assertOneOf "romID" romID roms;
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "perfect_dark";
|
||||
version = "0-unstable-2026-05-21";
|
||||
version = "0-unstable-2026-05-29";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fgsfdsfgs";
|
||||
owner = "perfect-dark-pc-port";
|
||||
repo = "perfect_dark";
|
||||
rev = "132e59d3ec1a17bbba5d5b1c991e9e1007cc271e";
|
||||
hash = "sha256-9nC9DPzrovhIvq+EcgSSGtlBjBrWWP8T8D4ZHw8ANRQ=";
|
||||
rev = "514bf7affd3259b7919165201342ff81a026d92c";
|
||||
hash = "sha256-J0n3hBxNZeLaFcR6NMIHO9QWEpKje5aORZOwn4vJG6M=";
|
||||
|
||||
postFetch = ''
|
||||
pushd $out
|
||||
@@ -73,9 +73,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# Point toward the compiled binary and not the shell wrapper since
|
||||
# the rom auto-detection logic is not needed in this build.
|
||||
+ ''
|
||||
substituteInPlace dist/linux/io.github.fgsfdsfgs.perfect_dark.desktop \
|
||||
--replace-fail "Exec=io.github.fgsfdsfgs.perfect_dark.sh" \
|
||||
"Exec=io.github.fgsfdsfgs.perfect_dark"
|
||||
substituteInPlace dist/linux/io.github.perfect_dark_pc_port.perfect_dark.desktop \
|
||||
--replace-fail "Exec=io.github.perfect_dark_pc_port.perfect_dark.sh" \
|
||||
"Exec=io.github.perfect_dark_pc_port.perfect_dark"
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
@@ -86,12 +86,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
runHook preInstall
|
||||
|
||||
pushd ..
|
||||
install -Dm755 build/pd.* $out/bin/io.github.fgsfdsfgs.perfect_dark
|
||||
install -Dm644 dist/linux/io.github.fgsfdsfgs.perfect_dark.desktop \
|
||||
install -Dm755 build/pd.* $out/bin/io.github.perfect_dark_pc_port.perfect_dark
|
||||
install -Dm644 dist/linux/io.github.perfect_dark_pc_port.perfect_dark.desktop \
|
||||
-t $out/share/applications
|
||||
install -Dm644 dist/linux/io.github.fgsfdsfgs.perfect_dark.png \
|
||||
install -Dm644 dist/linux/io.github.perfect_dark_pc_port.perfect_dark.png \
|
||||
-t $out/share/icons/hicolor/256x256/apps
|
||||
install -Dm644 dist/linux/io.github.fgsfdsfgs.perfect_dark.metainfo.xml \
|
||||
install -Dm644 dist/linux/io.github.perfect_dark_pc_port.perfect_dark.metainfo.xml \
|
||||
-t $out/share/metainfo
|
||||
popd
|
||||
|
||||
@@ -121,7 +121,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
Supported romIDs are `${lib.generators.toPretty { } roms}`.
|
||||
'';
|
||||
homepage = "https://github.com/fgsfdsfgs/perfect_dark/";
|
||||
homepage = "https://github.com/perfect-dark-pc-port/perfect_dark/";
|
||||
license = with lib.licenses; [
|
||||
# perfect_dark, khrplatform.h, port/fast3d
|
||||
mit
|
||||
@@ -132,7 +132,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
PaulGrandperrin
|
||||
sigmasquadron
|
||||
];
|
||||
mainProgram = "io.github.fgsfdsfgs.perfect_dark";
|
||||
mainProgram = "io.github.perfect_dark_pc_port.perfect_dark";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user