Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/patchelf
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8cc2d64444b0
Choose a base ref
...
head repository: NixOS/patchelf
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ac07356b0859
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Oct 23, 2019

  1. Copy the full SHA
    ac07356 View commit details
Showing with 30 additions and 21 deletions.
  1. +3 −3 flake.lock
  2. +27 −18 flake.nix
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 27 additions & 18 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -3,30 +3,39 @@

description = "A tool for modifying ELF executables and libraries";

outputs = { self, nixpkgs }: rec {
outputs = { self, nixpkgs }:

overlay = final: prev: {
let
supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
in

patchelf-new = final.stdenv.mkDerivation {
name = "patchelf-${hydraJobs.tarball.version}";
src = "${hydraJobs.tarball}/tarballs/*.tar.bz2";
};
rec {

};
overlay = final: prev: {

hydraJobs = import ./release.nix {
patchelfSrc = self;
nixpkgs = nixpkgs;
};
patchelf-new = final.stdenv.mkDerivation {
name = "patchelf-${hydraJobs.tarball.version}";
src = "${hydraJobs.tarball}/tarballs/*.tar.bz2";
};

checks.build = hydraJobs.build.x86_64-linux;
};

packages.patchelf = (import nixpkgs {
system = "x86_64-linux";
overlays = [ self.overlay ];
}).patchelf-new;
hydraJobs = import ./release.nix {
patchelfSrc = self;
nixpkgs = nixpkgs;
};

checks = forAllSystems (system: {
build = hydraJobs.build.${system};
});

defaultPackage = packages.patchelf;
defaultPackage = forAllSystems (system:
(import nixpkgs {
inherit system;
overlays = [ self.overlay ];
}).patchelf-new
);

};
};
}