mynixpkgs/default.nix

62 lines
2.2 KiB
Nix

{ pkgs ? import <nixpkgs> {} }:
builtins.intersectAttrs {hablo = 1; SJW = 1;} (pkgs.haskellPackages.override {
overrides = self: super: {
hablo = self.callPackage (
{ mkDerivation, aeson, base, bytestring, Cabal, containers
, directory, filepath, lib, lucid, mtl, optparse-applicative
, parsec, SJW, template, text, time, unix
}:
mkDerivation {
pname = "hablo";
version = "1.1.0.1";
src = builtins.fetchGit {
url = "https://git.marvid.fr/Tissevert/hablo.git";
ref = "v1.1.0.1";
};
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";
license = lib.licenses.bsd3;
}
) {};
SJW = self.callPackage (
{ mkDerivation, attoparsec, base, Cabal, containers, directory
, filepath, lib, mtl, optparse-applicative, random, text, time
, unix
}:
mkDerivation {
pname = "SJW";
version = "0.1.2.3";
src = builtins.fetchGit {
url = "https://git.marvid.fr/Tissevert/SJW.git";
ref = "v0.1.2.3";
};
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";
license = lib.licenses.bsd3;
}
) {};
};
})