mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
adds hashes
This commit is contained in:
parent
dbcb31856b
commit
e43b9f93fc
@ -43,10 +43,11 @@ with rec {
|
||||
{ mkDerivation, stdenv, flags ? {} }:
|
||||
let expr = expr0 flags;
|
||||
pname = expr.package.identifier.name;
|
||||
pversion = expr.package.identifier.version;
|
||||
in mkDerivation ({
|
||||
inherit pname;
|
||||
version = expr.package.identifier.version;
|
||||
sha256 = null;
|
||||
version = pversion;
|
||||
sha256 = (import <hackage/all-cabal-hashes.nix>).${pname}.${pversion} or null;
|
||||
|
||||
isLibrary = builtins.hasAttr pname expr.components;
|
||||
isExecutable = builtins.hasAttr "exes" expr.components;
|
||||
|
Loading…
Reference in New Issue
Block a user