mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 07:48:58 +00:00
dir2opus: switch to fetchFromGitHub
This commit is contained in:
parent
a930f7da84
commit
3dd8b1366e
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, python, mutagen, wrapPython, opusTools, mpg123 }:
|
||||
{ lib, stdenv, fetchFromGitHub, python, mutagen, wrapPython, opusTools, mpg123 }:
|
||||
|
||||
let version = "0.12.2"; in
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -9,10 +9,11 @@ stdenv.mkDerivation rec {
|
|||
buildInputs = [ wrapPython ];
|
||||
propagatedBuildInputs = [ opusTools mpg123 ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ehmry/dir2opus/archive/${version}.tar.gz";
|
||||
name = "${pname}-${version}.tar.gz";
|
||||
sha256 = "0bl8fa9zhccihnj1v3lpz5jb737frf9za06xb7j5rsjws6xky80d";
|
||||
src = fetchFromGitHub {
|
||||
owner = "ehmry";
|
||||
repo = "dir2opus";
|
||||
rev = version;
|
||||
hash = "sha256-ZEsXwqxikWxFOz99wTI3rEK/rEYA+BSWGrCwW4q+FFc=";
|
||||
};
|
||||
|
||||
postPatch = "sed -i -e 's|#!/usr/bin/python|#!${python}/bin/python|' dir2opus";
|
||||
|
|
Loading…
Reference in a new issue