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: a05752fa0c16
Choose a base ref
...
head repository: NixOS/patchelf
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: af2a9bedc4c3
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Nov 26, 2020

  1. 1
    Copy the full SHA
    b46859e View commit details
  2. Copy the full SHA
    af2a9be View commit details
Showing with 53 additions and 125 deletions.
  1. +3 −0 default.nix
  2. +50 −7 flake.nix
  3. +0 −118 release.nix
3 changes: 3 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) {
src = ./.;
}).defaultNix
57 changes: 50 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -8,26 +8,69 @@
let
supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);

nixpkgsFor = forAllSystems (system:
import nixpkgs {
inherit system;
overlays = [ self.overlay ];
}
);

pkgs = nixpkgsFor.${"x86_64-linux"};

in

rec {
{

overlay = final: prev: {

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

};

hydraJobs = import ./release.nix {
patchelfSrc = self;
nixpkgs = nixpkgs;
hydraJobs = {

tarball =
pkgs.releaseTools.sourceTarball rec {
name = "patchelf-tarball";
version = builtins.readFile ./version
+ "." + builtins.substring 0 8 self.lastModifiedDate
+ "." + (self.shortRev or "dirty");
versionSuffix = ""; # obsolete
src = self;
preAutoconf = "echo ${version} > version";
postDist = ''
cp README.md $out/
echo "doc readme $out/README.md" >> $out/nix-support/hydra-build-products
'';
};

coverage =
pkgs.releaseTools.coverageAnalysis {
name = "patchelf-coverage";
src = self.hydraJobs.tarball;
lcovFilter = ["*/tests/*"];
};

build = forAllSystems (system: nixpkgsFor.${system}.patchelf-new);

release = pkgs.releaseTools.aggregate
{ name = "patchelf-${self.hydraJobs.tarball.version}";
constituents =
[ self.hydraJobs.tarball
self.hydraJobs.build.x86_64-linux
self.hydraJobs.build.i686-linux
];
meta.description = "Release-critical builds";
};

};

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

defaultPackage = forAllSystems (system:
118 changes: 0 additions & 118 deletions release.nix

This file was deleted.