Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
84 lines
1.6 KiB
Nix
84 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
yarn-berry_4,
|
|
nodejs,
|
|
meson,
|
|
ninja,
|
|
blueprint-compiler,
|
|
gtksourceview5,
|
|
wrapGAppsHook4,
|
|
desktop-file-utils,
|
|
pkg-config,
|
|
writableTmpDirAsHomeHook,
|
|
gjs,
|
|
libadwaita,
|
|
nix-update-script,
|
|
}:
|
|
|
|
let
|
|
yarn-berry = yarn-berry_4;
|
|
in
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "learn6502";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "JumpLink";
|
|
repo = "Learn6502";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Aoj4Z9uraBEH3BW0hrhuV3Hu7cnRxvjbpzm4pUziWS4=";
|
|
};
|
|
|
|
missingHashes = ./missing-hashes.json;
|
|
|
|
offlineCache = yarn-berry.fetchYarnBerryDeps {
|
|
inherit (finalAttrs) src missingHashes;
|
|
hash = "sha256-0r+SRVx8b238SVm+XM4+uw7Ge3rFtsNwD/+uNfBA7eM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
nodejs
|
|
yarn-berry.yarnBerryConfigHook
|
|
meson
|
|
ninja
|
|
blueprint-compiler
|
|
wrapGAppsHook4
|
|
desktop-file-utils
|
|
pkg-config
|
|
writableTmpDirAsHomeHook
|
|
gjs # gjs-console
|
|
];
|
|
|
|
buildInputs = [
|
|
gjs
|
|
gtksourceview5
|
|
libadwaita
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
# yarnBerryConfigHook needs to run in the yarn.lock directory
|
|
postConfigure = ''
|
|
pushd ..
|
|
'';
|
|
|
|
# meson needs to enter the subdirectory
|
|
preBuild = ''
|
|
popd
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Modern 6502 Assembly Learning Environment for GNOME";
|
|
homepage = "https://github.com/JumpLink/Learn6502";
|
|
mainProgram = "eu.jumplink.Learn6502";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ ];
|
|
};
|
|
})
|