Merge pull request #282418 from krloer/master
bullshit: init at 0-unstable-2018-05-28
This commit is contained in:
commit
1ecd1beae4
2 changed files with 50 additions and 0 deletions
|
@ -10169,6 +10169,13 @@
|
|||
githubId = 22116767;
|
||||
name = "Kritnich";
|
||||
};
|
||||
krloer = {
|
||||
email = "kriloneri@gmail.com";
|
||||
github = "krloer";
|
||||
githubId = 45591621;
|
||||
name = "Kristoffer Longva Eriksen";
|
||||
matrix = "@krisleri:pvv.ntnu.no";
|
||||
};
|
||||
kroell = {
|
||||
email = "nixosmainter@makroell.de";
|
||||
github = "rokk4";
|
||||
|
|
43
pkgs/by-name/bu/bullshit/package.nix
Normal file
43
pkgs/by-name/bu/bullshit/package.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
, gawk
|
||||
, nix-update-script
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "bullshit";
|
||||
version = "0-unstable-2018-05-28";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fceschmidt";
|
||||
repo = "bullshit-arch";
|
||||
rev = "d65e4bbbea76bb752842c2c464154a7b417783fa";
|
||||
hash = "sha256-sqtQDaWtfhn9XYRsF8lVLHYb+7o9Hf7rLKsX6dw3Sh4=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm555 src/bullshit -t $out/bin
|
||||
install -Dm444 src/bullshit_lib $out/share/wordlists/bullshit.txt
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
fixupPhase = ''
|
||||
runHook preFixup
|
||||
patchShebangs $out/bin/bullshit
|
||||
substituteInPlace $out/bin/bullshit \
|
||||
--replace /usr/lib/bullshit $out/share/wordlists/bullshit.txt \
|
||||
--replace awk '${gawk}/bin/awk'
|
||||
runHook postFixup
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = with lib; {
|
||||
description = "A nonsense phrase generator";
|
||||
homepage = "https://github.com/fceschmidt/bullshit-arch";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ krloer ];
|
||||
inherit (gawk.meta) platforms;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue