From 0fc48fd45f756534648d989f5a2c4f3060464218 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 24 Dec 2023 04:20:53 -0500 Subject: pkgs: auto-import directories *and* files --- pkgs/check-pr.nix | 13 +++++++++ pkgs/check-pr/default.nix | 13 --------- pkgs/clang-tidy-sarif.nix | 36 +++++++++++++++++++++++++ pkgs/clang-tidy-sarif/default.nix | 36 ------------------------- pkgs/clippy-sarif.nix | 38 ++++++++++++++++++++++++++ pkgs/clippy-sarif/default.nix | 38 -------------------------- pkgs/default.nix | 20 +++++++------- pkgs/hadolint-sarif.nix | 36 +++++++++++++++++++++++++ pkgs/hadolint-sarif/default.nix | 36 ------------------------- pkgs/klassy.nix | 48 +++++++++++++++++++++++++++++++++ pkgs/klassy/default.nix | 48 --------------------------------- pkgs/nixgc.nix | 25 +++++++++++++++++ pkgs/nixgc/default.nix | 25 ----------------- pkgs/sarif-fmt.nix | 56 +++++++++++++++++++++++++++++++++++++++ pkgs/sarif-fmt/default.nix | 56 --------------------------------------- pkgs/shellcheck-sarif.nix | 36 +++++++++++++++++++++++++ pkgs/shellcheck-sarif/default.nix | 36 ------------------------- pkgs/treefetch.nix | 27 +++++++++++++++++++ pkgs/treefetch/default.nix | 27 ------------------- 19 files changed, 325 insertions(+), 325 deletions(-) create mode 100644 pkgs/check-pr.nix delete mode 100644 pkgs/check-pr/default.nix create mode 100644 pkgs/clang-tidy-sarif.nix delete mode 100644 pkgs/clang-tidy-sarif/default.nix create mode 100644 pkgs/clippy-sarif.nix delete mode 100644 pkgs/clippy-sarif/default.nix create mode 100644 pkgs/hadolint-sarif.nix delete mode 100644 pkgs/hadolint-sarif/default.nix create mode 100644 pkgs/klassy.nix delete mode 100644 pkgs/klassy/default.nix create mode 100644 pkgs/nixgc.nix delete mode 100644 pkgs/nixgc/default.nix create mode 100644 pkgs/sarif-fmt.nix delete mode 100644 pkgs/sarif-fmt/default.nix create mode 100644 pkgs/shellcheck-sarif.nix delete mode 100644 pkgs/shellcheck-sarif/default.nix create mode 100644 pkgs/treefetch.nix delete mode 100644 pkgs/treefetch/default.nix diff --git a/pkgs/check-pr.nix b/pkgs/check-pr.nix new file mode 100644 index 0000000..fca30b1 --- /dev/null +++ b/pkgs/check-pr.nix @@ -0,0 +1,13 @@ +{writeShellApplication}: +writeShellApplication { + name = "check-pr"; + text = '' + _usage=" + usage: check-pr [package] + " + + [ "$#" -lt 2 ] && echo -n "$_usage" && exit 1 + + nix run "github:$1?ref=pull/$2/head''${3:+#$3}" + ''; +} diff --git a/pkgs/check-pr/default.nix b/pkgs/check-pr/default.nix deleted file mode 100644 index fca30b1..0000000 --- a/pkgs/check-pr/default.nix +++ /dev/null @@ -1,13 +0,0 @@ -{writeShellApplication}: -writeShellApplication { - name = "check-pr"; - text = '' - _usage=" - usage: check-pr [package] - " - - [ "$#" -lt 2 ] && echo -n "$_usage" && exit 1 - - nix run "github:$1?ref=pull/$2/head''${3:+#$3}" - ''; -} diff --git a/pkgs/clang-tidy-sarif.nix b/pkgs/clang-tidy-sarif.nix new file mode 100644 index 0000000..12dfe55 --- /dev/null +++ b/pkgs/clang-tidy-sarif.nix @@ -0,0 +1,36 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + clang-tidy-sarif, + testers, +}: +rustPlatform.buildRustPackage rec { + pname = "clang-tidy-sarif"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "psastras"; + repo = "sarif-rs"; + rev = "${pname}-v${version}"; + hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; + }; + + cargoSha256 = "sha256-NzdgfHRDgLB6sMhBflk9rACEocLP23KlZL22iAfBfh8="; + cargoBuildFlags = ["--package" pname]; + cargoTestFlags = cargoBuildFlags; + + passthru = { + tests.version = testers.testVersion { + package = clang-tidy-sarif; + }; + }; + + meta = with lib; { + mainProgram = "clang-tidy-sarif"; + description = "A CLI tool to convert clang-tidy diagnostics into SARIF"; + homepage = "https://psastras.github.io/sarif-rs"; + maintainers = with maintainers; [getchoo]; + license = licenses.mit; + }; +} diff --git a/pkgs/clang-tidy-sarif/default.nix b/pkgs/clang-tidy-sarif/default.nix deleted file mode 100644 index 12dfe55..0000000 --- a/pkgs/clang-tidy-sarif/default.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ - lib, - fetchFromGitHub, - rustPlatform, - clang-tidy-sarif, - testers, -}: -rustPlatform.buildRustPackage rec { - pname = "clang-tidy-sarif"; - version = "0.4.2"; - - src = fetchFromGitHub { - owner = "psastras"; - repo = "sarif-rs"; - rev = "${pname}-v${version}"; - hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; - }; - - cargoSha256 = "sha256-NzdgfHRDgLB6sMhBflk9rACEocLP23KlZL22iAfBfh8="; - cargoBuildFlags = ["--package" pname]; - cargoTestFlags = cargoBuildFlags; - - passthru = { - tests.version = testers.testVersion { - package = clang-tidy-sarif; - }; - }; - - meta = with lib; { - mainProgram = "clang-tidy-sarif"; - description = "A CLI tool to convert clang-tidy diagnostics into SARIF"; - homepage = "https://psastras.github.io/sarif-rs"; - maintainers = with maintainers; [getchoo]; - license = licenses.mit; - }; -} diff --git a/pkgs/clippy-sarif.nix b/pkgs/clippy-sarif.nix new file mode 100644 index 0000000..a9fa10c --- /dev/null +++ b/pkgs/clippy-sarif.nix @@ -0,0 +1,38 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + clippy, + clippy-sarif, + testers, +}: +rustPlatform.buildRustPackage rec { + pname = "clippy-sarif"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "psastras"; + repo = "sarif-rs"; + rev = "${pname}-v${version}"; + hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; + }; + + cargoSha256 = "sha256-F3NrqkqLdvMRIuozCMMqwlrrf5QrnmcEhy4TGSzPhiU="; + cargoBuildFlags = ["--package" pname]; + cargoTestFlags = cargoBuildFlags; + + passthru = { + tests.version = testers.testVersion { + package = clippy-sarif; + }; + }; + + meta = with lib; { + mainProgram = "clippy-sarif"; + description = "A CLI tool to convert clippy diagnostics into SARIF"; + homepage = "https://psastras.github.io/sarif-rs"; + maintainers = with maintainers; [getchoo]; + license = licenses.mit; + inherit (clippy.meta) platforms; + }; +} diff --git a/pkgs/clippy-sarif/default.nix b/pkgs/clippy-sarif/default.nix deleted file mode 100644 index a9fa10c..0000000 --- a/pkgs/clippy-sarif/default.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ - lib, - fetchFromGitHub, - rustPlatform, - clippy, - clippy-sarif, - testers, -}: -rustPlatform.buildRustPackage rec { - pname = "clippy-sarif"; - version = "0.4.2"; - - src = fetchFromGitHub { - owner = "psastras"; - repo = "sarif-rs"; - rev = "${pname}-v${version}"; - hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; - }; - - cargoSha256 = "sha256-F3NrqkqLdvMRIuozCMMqwlrrf5QrnmcEhy4TGSzPhiU="; - cargoBuildFlags = ["--package" pname]; - cargoTestFlags = cargoBuildFlags; - - passthru = { - tests.version = testers.testVersion { - package = clippy-sarif; - }; - }; - - meta = with lib; { - mainProgram = "clippy-sarif"; - description = "A CLI tool to convert clippy diagnostics into SARIF"; - homepage = "https://psastras.github.io/sarif-rs"; - maintainers = with maintainers; [getchoo]; - license = licenses.mit; - inherit (clippy.meta) platforms; - }; -} diff --git a/pkgs/default.nix b/pkgs/default.nix index d6c02bb..3825a46 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -1,31 +1,31 @@ final: prev: with prev; let - # directories are mapped to packages here for convenience sake + # files/directories are mapped to packages here for convenience sake imported = lib.pipe ./. [ builtins.readDir ( lib.filterAttrs ( - name: type: !(lib.hasPrefix "_" name) && type == "directory" + name: _: !(lib.hasPrefix "_" name) && name != "default.nix" ) ) ( - lib.mapAttrs ( - file: _: callPackage ./${file} {} + lib.mapAttrs' ( + file: _: lib.nameValuePair (lib.removeSuffix ".nix" file) (callPackage ./${file} {}) ) ) ]; in imported // { - clang-tidy-sarif = callPackage ./clang-tidy-sarif {inherit (final) clang-tidy-sarif;}; - clippy-sarif = callPackage ./clippy-sarif {inherit (final) clippy-sarif;}; - hadolint-sarif = callPackage ./hadolint-sarif {inherit (final) hadolint-sarif;}; - sarif-fmt = callPackage ./sarif-fmt {inherit (final) sarif-fmt;}; - shellcheck-sarif = callPackage ./shellcheck-sarif {inherit (final) shellcheck-sarif;}; + clang-tidy-sarif = callPackage ./clang-tidy-sarif.nix {inherit (final) clang-tidy-sarif;}; + clippy-sarif = callPackage ./clippy-sarif.nix {inherit (final) clippy-sarif;}; + hadolint-sarif = callPackage ./hadolint-sarif.nix {inherit (final) hadolint-sarif;}; + sarif-fmt = callPackage ./sarif-fmt.nix {inherit (final) sarif-fmt;}; + shellcheck-sarif = callPackage ./shellcheck-sarif.nix {inherit (final) shellcheck-sarif;}; - klassy = libsForQt5.callPackage ./klassy {}; + klassy = libsForQt5.callPackage ./klassy.nix {}; modrinth-app-unwrapped = callPackage ./modrinth-app { inherit (final.nodePackages or prev.nodePackages) pnpm; diff --git a/pkgs/hadolint-sarif.nix b/pkgs/hadolint-sarif.nix new file mode 100644 index 0000000..44a813b --- /dev/null +++ b/pkgs/hadolint-sarif.nix @@ -0,0 +1,36 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + hadolint-sarif, + testers, +}: +rustPlatform.buildRustPackage rec { + pname = "hadolint-sarif"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "psastras"; + repo = "sarif-rs"; + rev = "${pname}-v${version}"; + hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; + }; + + cargoSha256 = "sha256-AMRL1XANyze8bJe3fdgZvBnl/NyuWP13jixixqiPmiw="; + cargoBuildFlags = ["--package" pname]; + cargoTestFlags = cargoBuildFlags; + + passthru = { + tests.version = testers.testVersion { + package = hadolint-sarif; + }; + }; + + meta = with lib; { + mainProgram = "hadolint-sarif"; + description = "A CLI tool to convert hadolint diagnostics into SARIF"; + homepage = "https://psastras.github.io/sarif-rs"; + maintainers = with maintainers; [getchoo]; + license = licenses.mit; + }; +} diff --git a/pkgs/hadolint-sarif/default.nix b/pkgs/hadolint-sarif/default.nix deleted file mode 100644 index 44a813b..0000000 --- a/pkgs/hadolint-sarif/default.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ - lib, - fetchFromGitHub, - rustPlatform, - hadolint-sarif, - testers, -}: -rustPlatform.buildRustPackage rec { - pname = "hadolint-sarif"; - version = "0.4.2"; - - src = fetchFromGitHub { - owner = "psastras"; - repo = "sarif-rs"; - rev = "${pname}-v${version}"; - hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; - }; - - cargoSha256 = "sha256-AMRL1XANyze8bJe3fdgZvBnl/NyuWP13jixixqiPmiw="; - cargoBuildFlags = ["--package" pname]; - cargoTestFlags = cargoBuildFlags; - - passthru = { - tests.version = testers.testVersion { - package = hadolint-sarif; - }; - }; - - meta = with lib; { - mainProgram = "hadolint-sarif"; - description = "A CLI tool to convert hadolint diagnostics into SARIF"; - homepage = "https://psastras.github.io/sarif-rs"; - maintainers = with maintainers; [getchoo]; - license = licenses.mit; - }; -} diff --git a/pkgs/klassy.nix b/pkgs/klassy.nix new file mode 100644 index 0000000..f4c809a --- /dev/null +++ b/pkgs/klassy.nix @@ -0,0 +1,48 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + ninja, + extra-cmake-modules, + kcmutils, + kdecoration, + kirigami2, + wrapQtAppsHook, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "klassy"; + version = "4.3.breeze5.27.5"; + + src = fetchFromGitHub { + owner = "paulmcauley"; + repo = "klassy"; + rev = finalAttrs.version; + hash = "sha256-2qs30L7U5kf1Yf+4Pgsjsyaqf9iIaeuRK25Xtn47AYI="; + }; + + buildInputs = [ + kcmutils + kdecoration + kirigami2 + ]; + + nativeBuildInputs = [ + cmake + ninja + extra-cmake-modules + wrapQtAppsHook + ]; + + meta = with lib; { + description = "a highly customizable binary Window Decoration and Application Style plugin"; + longDescription = '' + Klassy is a highly customizable binary Window Decoration and Application + Style plugin for recent versions of the KDE Plasma desktop. It provides + the Klassy, Kite, Oxygen/Breeze, and Redmond icon styles. + ''; + homepage = "https://github.com/paulmcauley/klassy"; + platforms = platforms.linux; + maintainers = with maintainers; [getchoo]; + }; +}) diff --git a/pkgs/klassy/default.nix b/pkgs/klassy/default.nix deleted file mode 100644 index f4c809a..0000000 --- a/pkgs/klassy/default.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ - lib, - stdenv, - fetchFromGitHub, - cmake, - ninja, - extra-cmake-modules, - kcmutils, - kdecoration, - kirigami2, - wrapQtAppsHook, -}: -stdenv.mkDerivation (finalAttrs: { - pname = "klassy"; - version = "4.3.breeze5.27.5"; - - src = fetchFromGitHub { - owner = "paulmcauley"; - repo = "klassy"; - rev = finalAttrs.version; - hash = "sha256-2qs30L7U5kf1Yf+4Pgsjsyaqf9iIaeuRK25Xtn47AYI="; - }; - - buildInputs = [ - kcmutils - kdecoration - kirigami2 - ]; - - nativeBuildInputs = [ - cmake - ninja - extra-cmake-modules - wrapQtAppsHook - ]; - - meta = with lib; { - description = "a highly customizable binary Window Decoration and Application Style plugin"; - longDescription = '' - Klassy is a highly customizable binary Window Decoration and Application - Style plugin for recent versions of the KDE Plasma desktop. It provides - the Klassy, Kite, Oxygen/Breeze, and Redmond icon styles. - ''; - homepage = "https://github.com/paulmcauley/klassy"; - platforms = platforms.linux; - maintainers = with maintainers; [getchoo]; - }; -}) diff --git a/pkgs/nixgc.nix b/pkgs/nixgc.nix new file mode 100644 index 0000000..9e25bd7 --- /dev/null +++ b/pkgs/nixgc.nix @@ -0,0 +1,25 @@ +# this is a shell script that uses the new nix cli to emulate +# nix-collect-garbage +{ + lib, + writeShellApplication, + nix, + fd, +}: +writeShellApplication { + name = "nixgc"; + + runtimeInputs = [nix fd]; + + text = '' + fd . /nix/var/nix/profiles /home/*/.local/state/nix/profiles -d 3 -t symlink -E '*-link' | while read -r profile; do + nix profile wipe-history --profile "$profile" "$@" + done + ''; + + meta = with lib; { + description = "nix-collect-garbage, but with nix profile"; + maintainers = [maintainers.getchoo]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/nixgc/default.nix b/pkgs/nixgc/default.nix deleted file mode 100644 index 9e25bd7..0000000 --- a/pkgs/nixgc/default.nix +++ /dev/null @@ -1,25 +0,0 @@ -# this is a shell script that uses the new nix cli to emulate -# nix-collect-garbage -{ - lib, - writeShellApplication, - nix, - fd, -}: -writeShellApplication { - name = "nixgc"; - - runtimeInputs = [nix fd]; - - text = '' - fd . /nix/var/nix/profiles /home/*/.local/state/nix/profiles -d 3 -t symlink -E '*-link' | while read -r profile; do - nix profile wipe-history --profile "$profile" "$@" - done - ''; - - meta = with lib; { - description = "nix-collect-garbage, but with nix profile"; - maintainers = [maintainers.getchoo]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/sarif-fmt.nix b/pkgs/sarif-fmt.nix new file mode 100644 index 0000000..451af0c --- /dev/null +++ b/pkgs/sarif-fmt.nix @@ -0,0 +1,56 @@ +{ + lib, + stdenv, + fetchFromGitHub, + rustPlatform, + clippy, + sarif-fmt, + testers, +}: +rustPlatform.buildRustPackage rec { + pname = "sarif-fmt"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "psastras"; + repo = "sarif-rs"; + rev = "${pname}-v${version}"; + hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; + }; + + cargoSha256 = "sha256-dHOxVLXtnqSHMX5r1wFxqogDf9QdnOZOjTyYFahru34="; + cargoBuildFlags = ["--package" pname]; + cargoTestFlags = cargoBuildFlags; + + nativeCheckInputs = lib.optionals stdenv.isLinux [ + # test_clippy + clippy + ]; + + checkFlags = + [ + # this test uses nix so...no go + "--skip=test_clang_tidy" + # ditto + "--skip=test_hadolint" + # ditto + "--skip=test_shellcheck" + ] + ++ lib.optionals stdenv.isDarwin [ + "--skip=test_clippy" + ]; + + passthru = { + tests.version = testers.testVersion { + package = sarif-fmt; + }; + }; + + meta = with lib; { + mainProgram = "sarif-fmt"; + description = "A CLI tool to pretty print SARIF diagnostics"; + homepage = "https://psastras.github.io/sarif-rs"; + maintainers = with maintainers; [getchoo]; + license = licenses.mit; + }; +} diff --git a/pkgs/sarif-fmt/default.nix b/pkgs/sarif-fmt/default.nix deleted file mode 100644 index 451af0c..0000000 --- a/pkgs/sarif-fmt/default.nix +++ /dev/null @@ -1,56 +0,0 @@ -{ - lib, - stdenv, - fetchFromGitHub, - rustPlatform, - clippy, - sarif-fmt, - testers, -}: -rustPlatform.buildRustPackage rec { - pname = "sarif-fmt"; - version = "0.4.2"; - - src = fetchFromGitHub { - owner = "psastras"; - repo = "sarif-rs"; - rev = "${pname}-v${version}"; - hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; - }; - - cargoSha256 = "sha256-dHOxVLXtnqSHMX5r1wFxqogDf9QdnOZOjTyYFahru34="; - cargoBuildFlags = ["--package" pname]; - cargoTestFlags = cargoBuildFlags; - - nativeCheckInputs = lib.optionals stdenv.isLinux [ - # test_clippy - clippy - ]; - - checkFlags = - [ - # this test uses nix so...no go - "--skip=test_clang_tidy" - # ditto - "--skip=test_hadolint" - # ditto - "--skip=test_shellcheck" - ] - ++ lib.optionals stdenv.isDarwin [ - "--skip=test_clippy" - ]; - - passthru = { - tests.version = testers.testVersion { - package = sarif-fmt; - }; - }; - - meta = with lib; { - mainProgram = "sarif-fmt"; - description = "A CLI tool to pretty print SARIF diagnostics"; - homepage = "https://psastras.github.io/sarif-rs"; - maintainers = with maintainers; [getchoo]; - license = licenses.mit; - }; -} diff --git a/pkgs/shellcheck-sarif.nix b/pkgs/shellcheck-sarif.nix new file mode 100644 index 0000000..4842c5d --- /dev/null +++ b/pkgs/shellcheck-sarif.nix @@ -0,0 +1,36 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + shellcheck-sarif, + testers, +}: +rustPlatform.buildRustPackage rec { + pname = "shellcheck-sarif"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "psastras"; + repo = "sarif-rs"; + rev = "${pname}-v${version}"; + hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; + }; + + cargoSha256 = "sha256-JuE/Z0qrS/3BRlb0jTGDfV0TYk74Q75X1wv/IERxqeQ="; + cargoBuildFlags = ["--package" pname]; + cargoTestFlags = cargoBuildFlags; + + passthru = { + tests.version = testers.testVersion { + package = shellcheck-sarif; + }; + }; + + meta = with lib; { + mainProgram = "shellcheck-sarif"; + description = "A CLI tool to convert shellcheck diagnostics into SARIF"; + homepage = "https://psastras.github.io/sarif-rs"; + maintainers = with maintainers; [getchoo]; + license = licenses.mit; + }; +} diff --git a/pkgs/shellcheck-sarif/default.nix b/pkgs/shellcheck-sarif/default.nix deleted file mode 100644 index 4842c5d..0000000 --- a/pkgs/shellcheck-sarif/default.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ - lib, - fetchFromGitHub, - rustPlatform, - shellcheck-sarif, - testers, -}: -rustPlatform.buildRustPackage rec { - pname = "shellcheck-sarif"; - version = "0.4.2"; - - src = fetchFromGitHub { - owner = "psastras"; - repo = "sarif-rs"; - rev = "${pname}-v${version}"; - hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; - }; - - cargoSha256 = "sha256-JuE/Z0qrS/3BRlb0jTGDfV0TYk74Q75X1wv/IERxqeQ="; - cargoBuildFlags = ["--package" pname]; - cargoTestFlags = cargoBuildFlags; - - passthru = { - tests.version = testers.testVersion { - package = shellcheck-sarif; - }; - }; - - meta = with lib; { - mainProgram = "shellcheck-sarif"; - description = "A CLI tool to convert shellcheck diagnostics into SARIF"; - homepage = "https://psastras.github.io/sarif-rs"; - maintainers = with maintainers; [getchoo]; - license = licenses.mit; - }; -} diff --git a/pkgs/treefetch.nix b/pkgs/treefetch.nix new file mode 100644 index 0000000..dd8283a --- /dev/null +++ b/pkgs/treefetch.nix @@ -0,0 +1,27 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, +}: +rustPlatform.buildRustPackage { + pname = "treefetch"; + version = "unstable-2022-06-08"; + + src = fetchFromGitHub { + owner = "angelofallars"; + repo = "treefetch"; + rev = "02f65e11e1f23d5fa9e66335eb5ff4f2f6b01400"; + sha256 = "sha256-FDiulTit492KwV46A3qwjHQwzpjVJvIXTfTrMufXd5k="; + }; + + cargoSha256 = "sha256-8HJYYPBogkgEfK3kv8dFUFaqUhvgYAOrhUIyZo3bqp8="; + + meta = with lib; { + description = "A plant-based system fetch tool made with Rust."; + longDescription = "A comfy and fast system fetch tool made in Rust. Tested to be much faster than neofetch and pfetch."; + homepage = "https://github.com/angelofallars/treefetch"; + license = licenses.gpl3; + maintainers = with maintainers; [getchoo]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/treefetch/default.nix b/pkgs/treefetch/default.nix deleted file mode 100644 index dd8283a..0000000 --- a/pkgs/treefetch/default.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ - lib, - fetchFromGitHub, - rustPlatform, -}: -rustPlatform.buildRustPackage { - pname = "treefetch"; - version = "unstable-2022-06-08"; - - src = fetchFromGitHub { - owner = "angelofallars"; - repo = "treefetch"; - rev = "02f65e11e1f23d5fa9e66335eb5ff4f2f6b01400"; - sha256 = "sha256-FDiulTit492KwV46A3qwjHQwzpjVJvIXTfTrMufXd5k="; - }; - - cargoSha256 = "sha256-8HJYYPBogkgEfK3kv8dFUFaqUhvgYAOrhUIyZo3bqp8="; - - meta = with lib; { - description = "A plant-based system fetch tool made with Rust."; - longDescription = "A comfy and fast system fetch tool made in Rust. Tested to be much faster than neofetch and pfetch."; - homepage = "https://github.com/angelofallars/treefetch"; - license = licenses.gpl3; - maintainers = with maintainers; [getchoo]; - platforms = platforms.unix; - }; -} -- cgit v1.2.3