diff --git a/pkgs/tools/cd-dvd/cue2pops/default.nix b/pkgs/by-name/cu/cue2pops/package.nix similarity index 64% rename from pkgs/tools/cd-dvd/cue2pops/default.nix rename to pkgs/by-name/cu/cue2pops/package.nix index 6cb93b3e04be2..3756597d900cb 100644 --- a/pkgs/tools/cd-dvd/cue2pops/default.nix +++ b/pkgs/by-name/cu/cue2pops/package.nix @@ -1,17 +1,17 @@ -{ lib -, stdenv -, fetchFromGitHub +{ + lib, + stdenv, + fetchFromGitHub, }: - stdenv.mkDerivation { pname = "cue2pops"; - version = "unstable-2018-01-04"; + version = "0-unstable-2018-01-04"; src = fetchFromGitHub { owner = "makefu"; repo = "cue2pops-linux"; rev = "541863adf23fdecde92eba5899f8d58586ca4551"; - sha256 = "05w84726g3k33rz0wwb9v77g7xh4cnhy9sxlpilf775nli9bynrk"; + hash = "sha256-M1u/UqS2nONovLTr5KFlBPbzztlpcQ5+HmOOZ8QhiBc="; }; dontConfigure = true; @@ -19,15 +19,17 @@ stdenv.mkDerivation { makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; installPhase = '' + runHook preInstall install --directory --mode=755 $out/bin install --mode=755 cue2pops $out/bin + runHook postInstall ''; - meta = with lib; { + meta = { description = "Convert CUE to ISO suitable to POPStarter"; homepage = "https://github.com/makefu/cue2pops-linux"; - maintainers = with maintainers; [ AndersonTorres ]; - platforms = platforms.all; + maintainers = with lib.maintainers; [ AndersonTorres ]; + platforms = lib.platforms.all; mainProgram = "cue2pops"; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5447ab2099378..c4d0f93dabb10 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4398,8 +4398,6 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Cocoa; }; - cue2pops = callPackage ../tools/cd-dvd/cue2pops { }; - cabal2nix-unwrapped = haskell.lib.compose.justStaticExecutables (haskellPackages.generateOptparseApplicativeCompletions [ "cabal2nix" ] haskellPackages.cabal2nix);