mynixpkgs/default.nix

62 lines
2.2 KiB
Nix
Raw Normal View History

2020-12-13 12:06:33 +01:00
{ pkgs ? import <nixpkgs> {} }:
2020-12-14 21:07:44 +01:00
builtins.intersectAttrs {hablo = 1; SJW = 1;} (pkgs.haskellPackages.override {
2020-12-13 12:06:33 +01:00
overrides = self: super: {
2020-12-14 21:07:44 +01:00
hablo = self.callPackage (
{ mkDerivation, aeson, base, bytestring, Cabal, containers
2021-02-09 17:38:34 +01:00
, directory, filepath, lib, lucid, mtl, optparse-applicative
, parsec, SJW, template, text, time, unix
2020-12-14 21:07:44 +01:00
}:
mkDerivation {
pname = "hablo";
version = "1.1.0.1";
2020-12-14 21:07:44 +01:00
src = builtins.fetchGit {
url = "https://git.marvid.fr/Tissevert/hablo.git";
ref = "v1.1.0.1";
2020-12-14 21:07:44 +01:00
};
isLibrary = true;
isExecutable = true;
enableSeparateDataOutput = true;
libraryHaskellDepends = [
aeson base bytestring containers directory filepath lucid mtl
optparse-applicative parsec SJW template text time unix
];
executableHaskellDepends = [ base mtl ];
testHaskellDepends = [
base Cabal containers directory filepath lucid mtl text
];
homepage = "https://git.marvid.fr/Tissevert/hablo";
description = "A minimalist static blog generator";
2021-02-09 17:38:34 +01:00
license = lib.licenses.bsd3;
2020-12-14 21:07:44 +01:00
}
) {};
2020-12-13 12:06:33 +01:00
SJW = self.callPackage (
{ mkDerivation, attoparsec, base, Cabal, containers, directory
2021-02-09 17:38:34 +01:00
, filepath, lib, mtl, optparse-applicative, random, text, time
2020-12-13 12:06:33 +01:00
, unix
}:
mkDerivation {
pname = "SJW";
version = "0.1.2.3";
2020-12-13 12:06:33 +01:00
src = builtins.fetchGit {
url = "https://git.marvid.fr/Tissevert/SJW.git";
ref = "v0.1.2.3";
2020-12-13 12:06:33 +01:00
};
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
attoparsec base containers directory filepath mtl random text time
unix
];
executableHaskellDepends = [
attoparsec base optparse-applicative text
];
testHaskellDepends = [ base Cabal directory filepath random ];
benchmarkHaskellDepends = [ base directory filepath random time ];
homepage = "https://git.marvid.fr/Tissevert/SJW";
description = "The Simple Javascript Wrench is a very simple tool to pack several JS «modules» into a single script";
2021-02-09 17:38:34 +01:00
license = lib.licenses.bsd3;
2020-12-13 12:06:33 +01:00
}
) {};
};
})