1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 11:07:44 +00:00
This commit is contained in:
RGBCube 2024-02-12 16:02:24 +03:00
parent 2cb89d6952
commit 7ac068c1f8
No known key found for this signature in database
4 changed files with 45 additions and 0 deletions

2
.gitignore vendored
View file

@ -1,5 +1,7 @@
*
!derivations/
!hosts/
!hosts/enka/
!hosts/cube/

41
derivations/rat.nix Normal file
View file

@ -0,0 +1,41 @@
{
stdenv,
lib,
bash,
fetchurl,
gnused,
makeWrapper,
opusfile,
sharutils,
sox,
}:
stdenv.mkDerivation rec {
pname = "rat";
version = "1.1";
src = fetchurl {
url = "https://github.com/Mcharlsto/rat/releases/download/${version}/rat";
sha256 = "sha256-93sspjvXFPocGFPeCF1AWoWYx5hI7vMltx9SQ7x25z4=";
};
buildInputs = [ gnused makeWrapper ];
phases = [ "installPhase" "postInstall" ];
installPhase = ''
mkdir -p $out/bin
cp $src $out/bin/rat
chmod +x $out/bin/rat
sed -i '1 s/^.*$/#\/usr\/bin\/env bash/' $out/bin/rat
'';
postInstall = ''
wrapProgram $out/bin/rat \
--prefix PATH : ${lib.makeBinPath [ sharutils opusfile sox bash ]}
'';
}

View file

@ -131,6 +131,7 @@
other = {
nuScripts = inputs.nuScripts;
rat = pkgs.callPackage ./derivations/rat.nix {};
zig = inputs.zig.packages.${system}.master;
};
in defaults // other;

View file

@ -45,6 +45,7 @@
fractal
qbittorrent
thunderbird
upkgs.rat
whatsapp-for-linux
krita