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/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7be2768a9c4a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8f22baa40f99
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on May 5, 2018

  1. nix-pin: 0.2.2 -> 0.3.0

    timbertson committed May 5, 2018
    Copy the full SHA
    3cce9b1 View commit details
  2. Merge pull request #40003 from timbertson/nix-pin

    nix-pin: 0.2.2 -> 0.3.0
    xeji authored May 5, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8f22baa View commit details
Showing with 7 additions and 5 deletions.
  1. +7 −5 pkgs/tools/package-management/nix-pin/default.nix
12 changes: 7 additions & 5 deletions pkgs/tools/package-management/nix-pin/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{ pkgs, stdenv, fetchFromGitHub, mypy, python3 }:
{ lib, pkgs, stdenv, fetchFromGitHub, mypy, python3, nix, git, makeWrapper }:
let self = stdenv.mkDerivation rec {
name = "nix-pin-${version}";
version = "0.2.2";
version = "0.3.0";
src = fetchFromGitHub {
owner = "timbertson";
repo = "nix-pin";
rev = "version-0.2.2";
sha256 = "1kw43kzy4m6lnnif51r2a8i4vcgr7d4vqb1c75p7pk2b9y3jwxsz";
rev = "version-0.3.0";
sha256 = "1kq50v8m8y1wji63b7y3wh6nv3ahvdxvvbsb07day2zzf5ysy8kj";
};
buildInputs = [ python3 mypy ];
buildInputs = [ python3 mypy makeWrapper ];
buildPhase = ''
mypy bin/*
'';
installPhase = ''
mkdir "$out"
cp -r bin share "$out"
wrapProgram $out/bin/nix-pin \
--prefix PATH : "${lib.makeBinPath [ nix git ]}"
'';
passthru =
let