From 53378b51a430f917a848ce541d94bfcfc0f7e134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Tue, 20 May 2025 17:30:00 +0200 Subject: [PATCH] hutils: migrate to by-name --- nix/packages/by-name/hutils/package.nix | 19 +++++++++++++++++++ nix/packages/top-level.nix | 5 ----- 2 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 nix/packages/by-name/hutils/package.nix diff --git a/nix/packages/by-name/hutils/package.nix b/nix/packages/by-name/hutils/package.nix new file mode 100644 index 00000000..547c3ab3 --- /dev/null +++ b/nix/packages/by-name/hutils/package.nix @@ -0,0 +1,19 @@ +{ + haskellPackages, + haskell, + fetchFromGitea, +}: let + inherit (haskell.lib.compose) justStaticExecutables; + + drv = + haskellPackages.callCabal2nix "hutils" + (fetchFromGitea { + domain = "git.confusedcompiler.org"; + owner = "leana8959"; + repo = "hutils"; + rev = "ee04ec425af81e762362bc2c4bcd5d89ad50ddc8"; + hash = "sha256-e22agWHNftl7zlXnPpzNyE3iJKPHxcE7tH1XRYfG+4Q="; + }) + {}; +in + justStaticExecutables drv diff --git a/nix/packages/top-level.nix b/nix/packages/top-level.nix index 22c34116..0380fc96 100644 --- a/nix/packages/top-level.nix +++ b/nix/packages/top-level.nix @@ -52,11 +52,6 @@ in rec { }; }; - hutils = mkHaskellPackage { - name = "hutils"; - src = sources.hutils; - }; - audio-lint = pkgs.rustPlatform.buildRustPackage rec { pname = "audio-lint"; version = lib.substring 0 8 sources.audio-lint.rev;