mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2025-10-03 07:23:32 +00:00
initial commit
This commit is contained in:
commit
a7d89a9499
10 changed files with 348 additions and 0 deletions
36
pkgs/rat/default.nix
Normal file
36
pkgs/rat/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
stdenv,
|
||||
fetchurl,
|
||||
gnused,
|
||||
makeWrapper,
|
||||
pkgs,
|
||||
lib,
|
||||
}:
|
||||
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 (with pkgs; [sharutils opusfile sox bash])}
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue