mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 22:49:41 +00:00
31 lines
618 B
Nix
31 lines
618 B
Nix
{
|
|
fetchFromGitHub,
|
|
stdenvNoCC,
|
|
lib,
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "hrt-time";
|
|
version = "unstable-" + lib.substring 0 8 finalAttrs.src.rev;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ariannelafraise";
|
|
repo = "hrt-time";
|
|
rev = "b344ab770e4c08d0bb13c38ea61979b282e24db7";
|
|
hash = "sha256-+AhLkcCETVnF6S+ov1oKxhs3M9F6ghyyERoLN3aMMxw=";
|
|
};
|
|
|
|
# Build takes no time
|
|
preferLocalBuild = true;
|
|
allowSubstitutes = false;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp hrt-time.sh $out/bin/hrt-time
|
|
'';
|
|
|
|
patches = [
|
|
./my-day.patch
|
|
];
|
|
|
|
meta.mainProgram = "hrt-time";
|
|
})
|