nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1# This file defines language-nix-unstable, used by maintainers/scripts/haskell/regenerate-hackage-packages.sh.
2{
3 mkDerivation,
4 base,
5 deepseq,
6 fetchzip,
7 hspec,
8 lens,
9 lib,
10 parsec-class,
11 pretty,
12 process,
13 QuickCheck,
14}:
15mkDerivation {
16 pname = "language-nix";
17 version = "2.3.0-unstable-2026-01-25";
18 src = fetchzip {
19 url = "https://github.com/NixOS/cabal2nix/archive/751a8eccfc92f8ce3ca9d517c554e7dcb3f409bd.tar.gz";
20 sha256 = "1i9ifxmh5bqgpa7a6l46lqkzpr7z3zfm7bdkllq56hz1nmj4gbqx";
21 };
22 postUnpack = "sourceRoot+=/language-nix; echo source root reset to $sourceRoot";
23 libraryHaskellDepends = [
24 base
25 deepseq
26 lens
27 parsec-class
28 pretty
29 QuickCheck
30 ];
31 testHaskellDepends = [
32 base
33 hspec
34 lens
35 parsec-class
36 pretty
37 process
38 QuickCheck
39 ];
40 homepage = "https://github.com/NixOS/cabal2nix/tree/master/language-nix#readme";
41 description = "Data types and functions to represent the Nix language";
42 license = lib.licenses.bsd3;
43}