mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
filterpath: init at 1.0.1
This commit is contained in:
parent
030938f1cd
commit
e37e42f5b6
39
pkgs/by-name/fi/filterpath/package.nix
Normal file
39
pkgs/by-name/fi/filterpath/package.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
name = "filterpath";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Sigmanificient";
|
||||
repo = "filterpath";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-vagIImWQQRigMYW12lw+Eg37JJ2yO/V5jq4wD3q4yy8=";
|
||||
};
|
||||
|
||||
makeFlags = [
|
||||
"CC=cc"
|
||||
"PREFIX=${placeholder "out"}/bin"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
echo "[`pwd`]" | ./filterpath | grep "`pwd`"
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/Sigmanificient/filterpath";
|
||||
description = "Retrieve a valid path from a messy piped line";
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [ sigmanificient ];
|
||||
mainProgram = "filterpath";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user