diff options
author | Tomas Antonio Lopez <entropy.overseer@entropic.network> | 2024-02-07 03:05:04 +0100 |
---|---|---|
committer | Tomas Antonio Lopez <entropy.overseer@entropic.network> | 2024-02-07 03:05:04 +0100 |
commit | 1c2a4b971eb0e683a85d1adcc97acd6f9b51e65b (patch) | |
tree | 450f410dffa09daa2d827f13f9c526304a29350f /nixos/tests/sourcehut | |
parent | 147cc4061eed12dc418ec753def00a1f9544fc23 (diff) |
srht-gen-oauth-tok: init at 0.1
Promote the srht-gen-oauth-tok package to a Nixpkgs package.
Diffstat (limited to 'nixos/tests/sourcehut')
-rw-r--r-- | nixos/tests/sourcehut/nodes/common.nix | 2 | ||||
-rw-r--r-- | nixos/tests/sourcehut/srht-gen-oauth-tok.nix | 31 |
2 files changed, 1 insertions, 32 deletions
diff --git a/nixos/tests/sourcehut/nodes/common.nix b/nixos/tests/sourcehut/nodes/common.nix index 79626eb582ef3..f0a81358f9721 100644 --- a/nixos/tests/sourcehut/nodes/common.nix +++ b/nixos/tests/sourcehut/nodes/common.nix @@ -102,6 +102,6 @@ in environment.systemPackages = with pkgs; [ hut # For interacting with the Sourcehut APIs via CLI - (callPackage ../srht-gen-oauth-tok.nix { }) # To automatically generate OAuth tokens + srht-gen-oauth-tok # To automatically generate user OAuth tokens ]; } diff --git a/nixos/tests/sourcehut/srht-gen-oauth-tok.nix b/nixos/tests/sourcehut/srht-gen-oauth-tok.nix deleted file mode 100644 index 0a6527c9ecbbe..0000000000000 --- a/nixos/tests/sourcehut/srht-gen-oauth-tok.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ stdenv, pkgs, lib, fetchFromSourcehut }: - -let - perl = pkgs.perl.withPackages (pps: [ - pps.CryptSSLeay - pps.WWWMechanize - pps.XMLLibXML - ]); -in -stdenv.mkDerivation rec { - pname = "srht-gen-oauth-tok"; - version = "0.1"; - - src = fetchFromSourcehut { - domain = "entropic.network"; - owner = "~nessdoor"; - repo = pname; - rev = version; - hash = "sha256-GcqP3XbVw2sR5n4+aLUmA4fthNkuVAGnhV1h7suJYdI="; - }; - - buildInputs = [ perl ]; - nativeBuildInputs = [ perl ]; - - installPhase = "install -Dm755 srht-gen-oauth-tok $out/bin/srht-gen-oauth-tok"; - - meta = { - description = "A script to register a new Sourcehut OAuth token for the given user"; - license = lib.licenses.gpl3; - }; -} |