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
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
desktop-file-utils,
|
|
gjs,
|
|
gobject-introspection,
|
|
gtksourceview5,
|
|
gtk4,
|
|
libadwaita,
|
|
meson,
|
|
ninja,
|
|
wrapGAppsHook4,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "textcompare";
|
|
version = "0.1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "josephmawa";
|
|
repo = "TextCompare";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-KWW83866dZRpuJzzYwk2X1/6OoD4gPnm2LD6IlP3fps=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
gjs
|
|
gobject-introspection
|
|
gtk4
|
|
meson
|
|
ninja
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
gjs
|
|
gtksourceview5
|
|
libadwaita
|
|
];
|
|
|
|
preFixup = ''
|
|
sed -i "1 a imports.package._findEffectiveEntryPointName = () => 'io.github.josephmawa.TextCompare';" $out/bin/io.github.josephmawa.TextCompare
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Simple desktop app to compare old and new text";
|
|
homepage = "https://github.com/josephmawa/TextCompare";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ iamanaws ];
|
|
mainProgram = "io.github.josephmawa.TextCompare";
|
|
platforms = lib.lists.intersectLists lib.platforms.linux gjs.meta.platforms;
|
|
};
|
|
})
|