Skip to content

Instantly share code, notes, and snippets.

@qknight
Created November 21, 2017 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qknight/20c066f56b014b88b413bc7b5aff40b1 to your computer and use it in GitHub Desktop.
Save qknight/20c066f56b014b88b413bc7b5aff40b1 to your computer and use it in GitHub Desktop.
nixpkgs.overlays = lib.singleton (self: super: {
systemd = super.systemd.overrideAttrs (drv: rec {
src = /root/systemd;
patches = [];
autoreconfPhase = ''
touch autogen.sh
chmod u+x autogen.sh
ls -lathr
sed -i -e 's|/bin/bash|${pkgs.bash}/bin/bash|g' configure
sed -i -e 's|meson.*||g' configure
'';
buildInputs= [ pkgs.meson pkgs.ninja ] ++ super.buildInputs;
#patches = [ ./d3070fbdf6077d7da9dbafa198fff8dea712d2ff.patch ];
#patches = [ ./7246.patch ];
#patches = [ https://patch-diff.githubusercontent.com/raw/systemd/systemd/pull/7246.patch ];
#name = "systemd-${version}";
#version = "232";
#src = self.fetchFromGitHub {
# owner = "nixos";
# repo = "systemd";
# rev = "66e778e851440fde7f20cff0c24d23538144be8d";
# sha256 = "1valz8v2q4cj0ipz2b6mh5p0rjxpy3m88gg9xa2rcc4gcmscndzk";
#};
passthru = (drv.passthru or {}) // {
udev.bin = self.systemd;
udev.lib = self.libudev.out;
};
});
});
@qknight
Copy link
Author

qknight commented Nov 21, 2017

instead of

    buildInputs= [ pkgs.meson pkgs.ninja ] ++ super.buildInputs;

one has to do

    buildInputs= [ pkgs.meson pkgs.ninja ] ++ drv.buildInputs;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment