plsfail added
This commit is contained in:
parent
687b99ae04
commit
57abab969e
5 changed files with 129 additions and 1 deletions
32
modules/packages/plsfail/default.nix
Normal file
32
modules/packages/plsfail/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ self, inputs, ... }:
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
packages.plsfail = pkgs.stdenvNoCC.mkDerivation {
|
||||
pname = "plsfail";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
substituteInPlace plsfail.py \
|
||||
--replace-fail '#!/usr/bin/env python3' '#!${pkgs.python3}/bin/python3'
|
||||
install -Dm755 plsfail.py "$out/bin/plsfail"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Run a command until it fails";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "plsfail";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue