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
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
dash,
|
|
scdoc,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
installShellFiles,
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "app2unit";
|
|
version = "1.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Vladimir-csp";
|
|
repo = "app2unit";
|
|
tag = "v${finalAttrs.version}";
|
|
sha256 = "sha256-M2sitlrQNSLthSaDH+R8gUcZ8i+o1ktf2SB/vvjyJEI=";
|
|
};
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
nativeBuildInputs = [
|
|
scdoc
|
|
installShellFiles
|
|
];
|
|
|
|
buildPhase = ''
|
|
scdoc < app2unit.1.scd > app2unit.1
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -Dt $out/bin app2unit
|
|
installManPage app2unit.1
|
|
|
|
for link in \
|
|
app2unit-open \
|
|
app2unit-open-scope \
|
|
app2unit-open-service \
|
|
app2unit-term \
|
|
app2unit-term-scope \
|
|
app2unit-term-service
|
|
do
|
|
ln -s $out/bin/app2unit $out/bin/$link
|
|
done
|
|
'';
|
|
|
|
dontPatchShebangs = true;
|
|
postFixup = ''
|
|
substituteInPlace $out/bin/app2unit \
|
|
--replace-fail '#!/bin/sh' '#!${lib.getExe dash}'
|
|
'';
|
|
|
|
meta = {
|
|
description = "Launches Desktop Entries as Systemd user units";
|
|
homepage = "https://github.com/Vladimir-csp/app2unit";
|
|
license = lib.licenses.gpl3;
|
|
mainProgram = "app2unit";
|
|
maintainers = with lib.maintainers; [ fazzi ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|