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;