From 4d1f160170fef83eae3a2fe08f06e55d5250e4d2 Mon Sep 17 00:00:00 2001 From: Kristoffer Longva Eriksen Date: Sat, 20 Jan 2024 22:26:09 +0100 Subject: [PATCH 1/2] maintainers: add krloer --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 0cddee228346..16c224577fa6 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9484,6 +9484,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"; From feec8c5a8c1aed86f6df7b59964c9834f0824aa5 Mon Sep 17 00:00:00 2001 From: Kristoffer Longva Eriksen Date: Sat, 20 Jan 2024 22:29:09 +0100 Subject: [PATCH 2/2] bullshit: init at 0-unstable-2018-05-28 --- pkgs/by-name/bu/bullshit/package.nix | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/bu/bullshit/package.nix diff --git a/pkgs/by-name/bu/bullshit/package.nix b/pkgs/by-name/bu/bullshit/package.nix new file mode 100644 index 000000000000..64f50f1d2b30 --- /dev/null +++ b/pkgs/by-name/bu/bullshit/package.nix @@ -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; + }; +}