Skip to content

Commit

Permalink
tidy nix derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGibb committed May 23, 2024
1 parent f2a88c8 commit 102b73f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/state/opamSysInteract.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1023,13 +1023,9 @@ let install_packages_commands_t ?(env=OpamVariable.Map.empty) switch config sys_
let contents =
{|{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
packages = [ |} ^ packages ^ {| ];
inputs = with buildPackages; packages ++ [ pkg-config ];
in
stdenv.mkDerivation {
name = "opam-nix-env";
nativeBuildInputs = inputs;
nativeBuildInputs = with buildPackages; [ |} ^ packages ^ {| ];

phases = [ "buildPhase" ];

Expand Down

0 comments on commit 102b73f

Please # to comment.