diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2016-11-23 04:20:51 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2016-11-23 10:01:30 +0100 |
commit | 0a309311ddf4d4ae0539c75eea036775f3d54faa (patch) | |
tree | a64f9c43d87bd7e6b122c61935328e341c805599 /pkgs/development/ocaml-modules/uucd/default.nix | |
parent | 97a496a472ded2ca22a5a1bdf91752cd3e1b8df0 (diff) | |
download | nixlib-0a309311ddf4d4ae0539c75eea036775f3d54faa.tar nixlib-0a309311ddf4d4ae0539c75eea036775f3d54faa.tar.gz nixlib-0a309311ddf4d4ae0539c75eea036775f3d54faa.tar.bz2 nixlib-0a309311ddf4d4ae0539c75eea036775f3d54faa.tar.lz nixlib-0a309311ddf4d4ae0539c75eea036775f3d54faa.tar.xz nixlib-0a309311ddf4d4ae0539c75eea036775f3d54faa.tar.zst nixlib-0a309311ddf4d4ae0539c75eea036775f3d54faa.zip |
ocamlPackages.topkg: make the installPhase independent of the package name
It can then be reused as-is in other derivations (e.g., uucd).
Diffstat (limited to 'pkgs/development/ocaml-modules/uucd/default.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/uucd/default.nix | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pkgs/development/ocaml-modules/uucd/default.nix b/pkgs/development/ocaml-modules/uucd/default.nix index 73a0ccdacfe7..d44309b266a5 100644 --- a/pkgs/development/ocaml-modules/uucd/default.nix +++ b/pkgs/development/ocaml-modules/uucd/default.nix @@ -19,13 +19,7 @@ stdenv.mkDerivation rec { unpackCmd = "tar xjf $src"; - inherit (topkg) buildPhase; - - installPhase = '' - opam-installer --script --prefix=$out ${pname}.install > install.sh - sh install.sh - ln -s $out/lib/${pname} $out/lib/ocaml/${ocaml.version}/site-lib/ - ''; + inherit (topkg) buildPhase installPhase; propagatedBuildInputs = [ xmlm ]; |