mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
Add rat
This commit is contained in:
parent
2cb89d6952
commit
7ac068c1f8
4 changed files with 45 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,7 @@
|
||||||
*
|
*
|
||||||
|
|
||||||
|
!derivations/
|
||||||
|
|
||||||
!hosts/
|
!hosts/
|
||||||
!hosts/enka/
|
!hosts/enka/
|
||||||
!hosts/cube/
|
!hosts/cube/
|
||||||
|
|
41
derivations/rat.nix
Normal file
41
derivations/rat.nix
Normal 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 ]}
|
||||||
|
'';
|
||||||
|
}
|
|
@ -131,6 +131,7 @@
|
||||||
|
|
||||||
other = {
|
other = {
|
||||||
nuScripts = inputs.nuScripts;
|
nuScripts = inputs.nuScripts;
|
||||||
|
rat = pkgs.callPackage ./derivations/rat.nix {};
|
||||||
zig = inputs.zig.packages.${system}.master;
|
zig = inputs.zig.packages.${system}.master;
|
||||||
};
|
};
|
||||||
in defaults // other;
|
in defaults // other;
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
fractal
|
fractal
|
||||||
qbittorrent
|
qbittorrent
|
||||||
thunderbird
|
thunderbird
|
||||||
|
upkgs.rat
|
||||||
whatsapp-for-linux
|
whatsapp-for-linux
|
||||||
|
|
||||||
krita
|
krita
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue