Merge pull request #132641 from sternenseemann/cabal2nix-2.18.0

[21.05] cabal2nix: 2.17.0 -> 2.18.0
This commit is contained in:
maralorn 2021-08-04 12:06:49 +02:00 committed by GitHub
commit d867206bb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 0 deletions

View File

@ -49,5 +49,11 @@ self: super: {
arion-compose = self.callPackage ../../applications/virtualization/arion/arion-compose.nix {};
# cabal2nix cabal://ap-normalize-0.1.0.1
ap-normalize = self.callPackage ../misc/haskell/ap-normalize {};
# cabal2nix cabal://distribution-nixpkgs
distribution-nixpkgs_1_6_0 = self.callPackage ../misc/haskell/distribution-nixpkgs.nix {};
# cabal2nix cabal://cabal2nix-2.18.0
cabal2nix = self.callPackage ../misc/haskell/cabal2nix.nix {
distribution-nixpkgs = self.distribution-nixpkgs_1_6_0;
};
}

View File

@ -0,0 +1,35 @@
{ mkDerivation, aeson, ansi-wl-pprint, base, bytestring, Cabal
, containers, deepseq, directory, distribution-nixpkgs, filepath
, hackage-db, hopenssl, hpack, language-nix, lens, lib, monad-par
, monad-par-extras, mtl, optparse-applicative, pretty, process
, split, tasty, tasty-golden, text, time, transformers, yaml
}:
mkDerivation {
pname = "cabal2nix";
version = "2.18.0";
sha256 = "4b90602dc0878c2e4a3e7def2c2ae0e99782b2f0d53d8e3914adaa43038b1f86";
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
aeson ansi-wl-pprint base bytestring Cabal containers deepseq
directory distribution-nixpkgs filepath hackage-db hopenssl hpack
language-nix lens optparse-applicative pretty process split text
time transformers yaml
];
executableHaskellDepends = [
aeson base bytestring Cabal containers directory
distribution-nixpkgs filepath hopenssl language-nix lens monad-par
monad-par-extras mtl optparse-applicative pretty
];
testHaskellDepends = [
base Cabal containers directory filepath language-nix lens pretty
process tasty tasty-golden
];
preCheck = ''
export PATH="$PWD/dist/build/cabal2nix:$PATH"
export HOME="$TMPDIR/home"
'';
homepage = "https://github.com/nixos/cabal2nix#readme";
description = "Convert Cabal files into Nix build instructions";
license = lib.licenses.bsd3;
}

View File

@ -0,0 +1,19 @@
{ mkDerivation, aeson, base, bytestring, Cabal, containers, deepseq
, hspec, language-nix, lens, lib, pretty, process, split
}:
mkDerivation {
pname = "distribution-nixpkgs";
version = "1.6.0";
sha256 = "d1804dcb731858d40859f1cf55ea81b3f6bc63a353437c1009c158e0f9e03354";
revision = "1";
editedCabalFile = "0j35y7ws7rbc68vkmyvpa4m2dyfpzpzzvm4lv7h6r7x34w331dgg";
enableSeparateDataOutput = true;
libraryHaskellDepends = [
aeson base bytestring Cabal containers deepseq language-nix lens
pretty process split
];
testHaskellDepends = [ base deepseq hspec lens ];
homepage = "https://github.com/NixOS/distribution-nixpkgs";
description = "Types and functions to manipulate the Nixpkgs distribution";
license = lib.licenses.bsd3;
}