add ips package

This commit is contained in:
rhiannon morris 2025-04-04 23:49:39 +02:00
parent 1ccbf13a31
commit 3c03898977
2 changed files with 29 additions and 1 deletions

View file

@ -22,6 +22,8 @@
"pragmatapro" "teranoptia"
];
haskellPackages = packagesInDir "haskell" [ "ips" ];
makeApp = pkgs: name: exe: {
inherit name;
@ -43,7 +45,8 @@
mkPackages = sys: pkgs:
ifLinux64 sys (linuxPackages pkgs) //
crossPlatformPackages pkgs // fonts pkgs;
crossPlatformPackages pkgs // fonts pkgs //
haskellPackages pkgs.haskellPackages;
mkApps = sys: pkgs: ifLinux64 sys (linuxApps pkgs);
in {

25
haskell/ips.nix Normal file
View file

@ -0,0 +1,25 @@
{ mkDerivation, attoparsec, base, bytestring, fetchgit, lib
, primitive, vector
}:
mkDerivation {
pname = "ips";
version = "0.1.0";
src = fetchgit {
url = "https://git.rhiannon.website/rhi/ips.git";
sha256 = "0qbkbxbyzky8sg2d8737588qpvjlyh2b33d3gj885s3rwl60ff6d";
rev = "6a8c937d241156ab3b6ac684c2dc5e0fd9648dde";
fetchSubmodules = true;
};
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
attoparsec base bytestring primitive vector
];
executableHaskellDepends = [
attoparsec base bytestring primitive vector
];
homepage = "https://git.rhiannon.website/rhi/ips";
description = "applies ips patches. remember those?";
license = lib.licenses.wtfpl;
mainProgram = "ips";
}